MCPcopy Create free account
hub / github.com/supabase/auth / TestTableNameNamespacing

Function TestTableNameNamespacing

internal/models/db_test.go:10–24  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

8)
9
10func TestTableNameNamespacing(t *testing.T) {
11 cases := []struct {
12 expected string
13 value interface{}
14 }{
15 {expected: "audit_log_entries", value: []*AuditLogEntry{}},
16 {expected: "refresh_tokens", value: []*RefreshToken{}},
17 {expected: "users", value: []*User{}},
18 }
19
20 for _, tc := range cases {
21 m := &pop.Model{Value: tc.value}
22 assert.Equal(t, tc.expected, m.TableName())
23 }
24}

Callers

nothing calls this directly

Calls 2

EqualMethod · 0.80
TableNameMethod · 0.45

Tested by

no test coverage detected