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

Function assertCurrentAuthContext

cmd/root_test.go:666–675  ·  view source on GitHub ↗
(t *testing.T, source string, refreshable bool, authFile string)

Source from the content-addressed store, hash-verified

664}
665
666func assertCurrentAuthContext(t *testing.T, source string, refreshable bool, authFile string) {
667 t.Helper()
668
669 if currentAuthContext == nil {
670 t.Fatal("currentAuthContext = nil")
671 }
672 if currentAuthContext.Source != source || currentAuthContext.Refreshable != refreshable || currentAuthContext.AuthFile != authFile {
673 t.Fatalf("currentAuthContext = %#v, want source=%q refreshable=%t auth_file=%q", currentAuthContext, source, refreshable, authFile)
674 }
675}
676
677func TestWithRootNamespaceKeepsConfigOnAccountError(t *testing.T) {
678 cfg := makeDropboxConfig("token", false, "dbmid:member", "api.example.com")

Calls

no outgoing calls

Tested by

no test coverage detected