mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-18 14:47:03 +00:00
docs: Add missing docstrings, adjust wording to match standard style
This patch adds a missing docstrings for exported identifiers, and adjust some of the existing ones to match the standard style. In some cases, the identifiers were un-exported after noticing they had no external users. Besides improving documentation, it also reduces the linter noise significantly.
This commit is contained in:
@@ -19,12 +19,12 @@ func TestUsernameNotSafe(t *testing.T) {
|
||||
"a b", " ab", "ab ", "a\tb", "a\t", " ", "\t", "\t "}
|
||||
for _, c := range cases {
|
||||
ok, err := a.Authenticate(c, "passwd")
|
||||
if ok || err != ErrUsernameNotSafe {
|
||||
if ok || err != errUsernameNotSafe {
|
||||
t.Errorf("Authenticate(%q, _): got %v, %v", c, ok, err)
|
||||
}
|
||||
|
||||
ok, err = a.Exists(c)
|
||||
if ok || err != ErrUsernameNotSafe {
|
||||
if ok || err != errUsernameNotSafe {
|
||||
t.Errorf("Exists(%q): got %v, %v", c, ok, err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user