MCPcopy Index your code
hub / github.com/rilldata/rill / NewWithUser

Function NewWithUser

cli/testcli/testcli.go:37–40  ·  view source on GitHub ↗

NewWithUser is similar to New, but also creates a new user and authenticates the Fixture with a token for that user.

(t *testing.T, adm *testadmin.Fixture)

Source from the content-addressed store, hash-verified

35
36// NewWithUser is similar to New, but also creates a new user and authenticates the Fixture with a token for that user.
37func NewWithUser(t *testing.T, adm *testadmin.Fixture) *Fixture {
38 _, c := adm.NewUser(t)
39 return New(t, adm, c.Token)
40}
41
42// Result represents the output of a CLI invocation.
43type Result struct {

Callers 2

TestOrgFunction · 0.92
TestTokenFunction · 0.92

Calls 2

NewUserMethod · 0.80
NewFunction · 0.70

Tested by 2

TestOrgFunction · 0.74
TestTokenFunction · 0.74