Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added constructors for Entry and EntryAttribute #38

Merged
merged 1 commit into from
Nov 5, 2015

Conversation

stevekuznetsov
Copy link
Contributor

When consumers of this package do unit testing they will invariably mock out LDAP entries. It is useful to expose a nice constructor for this object so that they do not have to do so manually.

/cc @johnweldon @liggitt

}
}

func representAsBytes(values []string) [][]byte {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would inline this in NewEntryAttribute

@stevekuznetsov
Copy link
Contributor Author

@liggitt Addressed comment

@stevekuznetsov
Copy link
Contributor Author

@liggitt Thoughts?

@johnweldon
Copy link
Member

LGTM

Thanks @stevekuznetsov

johnweldon added a commit that referenced this pull request Nov 5, 2015
added constructors for Entry and EntryAttribute
@johnweldon johnweldon merged commit b4c9518 into go-ldap:master Nov 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants