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

Function expectedJSONErrorCodes

cmd/json_contract_test.go:601–620  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

599}
600
601func expectedJSONErrorCodes() []string {
602 return []string{
603 jsonErrorCodeAppKeyRequired,
604 jsonErrorCodeAuthExchangeFailed,
605 jsonErrorCodeAuthRefreshFailed,
606 jsonErrorCodeAuthRequired,
607 jsonErrorCodeCommandFailed,
608 jsonErrorCodeDropboxAPIError,
609 jsonErrorCodeEnvTokenStillActive,
610 jsonErrorCodeInvalidArguments,
611 jsonErrorCodeNotFound,
612 jsonErrorCodePartialTransfer,
613 jsonErrorCodePathConflict,
614 jsonErrorCodePermissionDenied,
615 jsonErrorCodeRateLimited,
616 jsonErrorCodeStructuredOutputUnsupported,
617 jsonErrorCodeUnknownCommand,
618 jsonErrorCodeUnknownFlag,
619 }
620}
621
622func assertGoldenJSONEqual(t *testing.T, command string, fixture json.RawMessage, actual any) {
623 t.Helper()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected