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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add unittest #396

Merged
merged 3 commits into from Nov 23, 2022
Merged

test: add unittest #396

merged 3 commits into from Nov 23, 2022

Conversation

woorui
Copy link
Collaborator

@woorui woorui commented Nov 21, 2022

No description provided.

Copy link
Contributor

@venjiang venjiang left a comment

Choose a reason for hiding this comment

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

Good job! 馃憤


// Object is the object to be authenticated,
// The Object usually be pass to `Authenticate` function to be authed.
type Object interface {
Copy link
Collaborator

Choose a reason for hiding this comment

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

the name Object is too generic

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Object belongs to auth package, It usually be called as auth.Object.

I also think this variable name is not the best, Can you give me a suggestion ?

core/client_test.go Show resolved Hide resolved
core/client_test.go Outdated Show resolved Hide resolved
core/client_test.go Outdated Show resolved Hide resolved
core/client_test.go Show resolved Hide resolved
core/server.go Show resolved Hide resolved
core/server_test.go Outdated Show resolved Hide resolved
@fanweixiao fanweixiao merged commit 508ce07 into master Nov 23, 2022
@fanweixiao fanweixiao deleted the test/unittest branch November 23, 2022 13:58
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

4 participants