MCPcopy Create free account
hub / github.com/belak/gitdir / TestAccessLevelStringer

Function TestAccessLevelStringer

repo_test.go:106–114  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

104}
105
106func TestAccessLevelStringer(t *testing.T) {
107 t.Parallel()
108
109 assert.Equal(t, "None", AccessLevelNone.String())
110 assert.Equal(t, "Read", AccessLevelRead.String())
111 assert.Equal(t, "Write", AccessLevelWrite.String())
112 assert.Equal(t, "Admin", AccessLevelAdmin.String())
113 assert.Equal(t, "Unknown(42)", AccessLevel(42).String())
114}
115
116func TestRepoLookup(t *testing.T) { //nolint:funlen
117 t.Parallel()

Callers

nothing calls this directly

Calls 2

AccessLevelTypeAlias · 0.85
StringMethod · 0.45

Tested by

no test coverage detected