MCPcopy Create free account
hub / github.com/dropbox/dbxcli / assertAccountAuth

Function assertAccountAuth

cmd/account_test.go:237–246  ·  view source on GitHub ↗
(t *testing.T, got *accountAuth, source string, refreshable bool, authFile string)

Source from the content-addressed store, hash-verified

235}
236
237func assertAccountAuth(t *testing.T, got *accountAuth, source string, refreshable bool, authFile string) {
238 t.Helper()
239
240 if got == nil {
241 t.Fatal("auth = nil, want auth context")
242 }
243 if got.Source != source || got.Refreshable != refreshable || got.AuthFile != authFile {
244 t.Fatalf("auth = %#v, want source=%q refreshable=%t auth_file=%q", got, source, refreshable, authFile)
245 }
246}
247
248func testFullAccount() *users.FullAccount {
249 account := users.NewFullAccount(

Calls

no outgoing calls

Tested by

no test coverage detected