MCPcopy Create free account
hub / github.com/rilldata/rill / TestMany

Function TestMany

admin/pkg/authtoken/authtoken_test.go:94–101  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

92}
93
94func TestMany(t *testing.T) {
95 for i := 0; i < 100000; i++ {
96 tkn := NewRandom(TypeDeployment)
97 str := tkn.String()
98 _, err := FromString(str)
99 require.NoError(t, err)
100 }
101}
102
103func TestPrefix(t *testing.T) {
104 tkn := NewRandom(TypeUser)

Callers

nothing calls this directly

Calls 3

FromStringFunction · 0.85
NewRandomFunction · 0.70
StringMethod · 0.65

Tested by

no test coverage detected