MCPcopy Index your code
hub / github.com/coder/coder / TestParseAllowListLimit

Function TestParseAllowListLimit

coderd/rbac/allowlist_test.go:64–72  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

62}
63
64func TestParseAllowListLimit(t *testing.T) {
65 t.Parallel()
66 inputs := make([]string, 0, 130)
67 for range 130 {
68 inputs = append(inputs, "workspace:"+uuid.New().String())
69 }
70 _, err := rbac.ParseAllowList(inputs, 128)
71 require.Error(t, err)
72}
73
74func TestIntersectAllowLists(t *testing.T) {
75 t.Parallel()

Callers

nothing calls this directly

Calls 4

ParseAllowListFunction · 0.92
NewMethod · 0.65
StringMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected