MCPcopy Index your code
hub / github.com/Permify/permify / TestConsts

Function TestConsts

pkg/database/consts_test.go:9–29  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

7)
8
9func TestConsts(t *testing.T) {
10 tests := []struct {
11 name Engine
12 result string
13 }{
14 {
15 name: "postgres",
16 result: "postgres",
17 },
18 {
19 name: "memory",
20 result: "memory",
21 },
22 }
23
24 for _, tt := range tests {
25 t.Run(tt.name.String(), func(t *testing.T) {
26 assert.Equal(t, tt.result, tt.result)
27 })
28 }
29}

Callers

nothing calls this directly

Calls 2

StringMethod · 0.65
RunMethod · 0.45

Tested by

no test coverage detected