MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / init

Function init

pkg/account/server_test.go:74–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72)
73
74func init() {
75 ctx := test.Context()
76
77 hashValidator := pbkdf2.Default()
78 hashValidator.Iterations = 10
79 ctx = auth.NewContextWithHashValidator(ctx, hashValidator)
80
81 password, err := auth.Hash(ctx, "pass")
82 if err != nil {
83 panic(err)
84 }
85 mockUser.Password = password
86}
87
88func TestAuthentication(t *testing.T) {
89 store := &mockStore{}

Callers

nothing calls this directly

Calls 4

ContextFunction · 0.92
DefaultFunction · 0.92
HashFunction · 0.92

Tested by

no test coverage detected