MCPcopy Create free account
hub / github.com/syncthing/syncthing / TestSimpleAuthUsernameFail

Function TestSimpleAuthUsernameFail

lib/api/api_auth_test.go:35–42  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

33}
34
35func TestSimpleAuthUsernameFail(t *testing.T) {
36 t.Parallel()
37
38 ok := authStatic("userWRONG", "pass", guiCfg)
39 if ok {
40 t.Fatalf("should fail auth")
41 }
42}
43
44func TestStaticAuthPasswordFail(t *testing.T) {
45 t.Parallel()

Callers

nothing calls this directly

Calls 1

authStaticFunction · 0.85

Tested by

no test coverage detected