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

Function sampleJSONAccount

cmd/json_contract_test.go:911–929  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

909}
910
911func sampleJSONAccount() jsonAccount {
912 return jsonAccount{
913 Type: "full",
914 AccountID: "dbid:account",
915 Auth: &accountAuth{Source: authSourceSaved, Refreshable: true, AuthFile: authFileDefault},
916 Name: &jsonAccountName{GivenName: "Ada", Surname: "Lovelace", FamiliarName: "Ada", DisplayName: "Ada Lovelace", AbbreviatedName: "AL"},
917 Email: "ada@example.com",
918 EmailVerified: true,
919 Disabled: false,
920 ProfilePhotoURL: "https://example.com/profile.jpg",
921 Locale: "en",
922 ReferralLink: "https://example.com/referral",
923 IsPaired: boolPtr(false),
924 AccountType: "basic",
925 IsTeammate: boolPtr(true),
926 TeamMemberID: "dbmid:team-member",
927 Team: &jsonAccountTeam{ID: "team-id", Name: "Engineering", MemberID: "dbmid:team-member"},
928 }
929}
930
931func sampleJSONFileMetadata(path string) jsonMetadata {
932 return jsonMetadata{

Callers 1

Calls 1

boolPtrFunction · 0.85

Tested by

no test coverage detected