MCPcopy Index your code
hub / github.com/syncthing/syncthing / TestStaticAuthPasswordFail

Function TestStaticAuthPasswordFail

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

Source from the content-addressed store, hash-verified

42}
43
44func TestStaticAuthPasswordFail(t *testing.T) {
45 t.Parallel()
46
47 ok := authStatic("user", "passWRONG", guiCfg)
48 if ok {
49 t.Fatalf("should fail auth")
50 }
51}
52
53func TestFormatOptionalPercentS(t *testing.T) {
54 t.Parallel()

Callers

nothing calls this directly

Calls 1

authStaticFunction · 0.85

Tested by

no test coverage detected