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

Function assertStringSliceMapEqual

cmd/json_contract_test.go:1179–1191  ·  view source on GitHub ↗
(t *testing.T, label string, got, want map[string][]string)

Source from the content-addressed store, hash-verified

1177}
1178
1179func assertStringSliceMapEqual(t *testing.T, label string, got, want map[string][]string) {
1180 t.Helper()
1181
1182 got = normalizeStringSliceMap(got)
1183 want = normalizeStringSliceMap(want)
1184 if reflect.DeepEqual(got, want) {
1185 return
1186 }
1187
1188 gotJSON, _ := json.MarshalIndent(got, "", " ")
1189 wantJSON, _ := json.MarshalIndent(want, "", " ")
1190 t.Fatalf("%s = %s, want %s", label, gotJSON, wantJSON)
1191}
1192
1193func assertStringSliceEqual(t *testing.T, label string, got, want []string) {
1194 t.Helper()

Callers 1

Calls 1

normalizeStringSliceMapFunction · 0.85

Tested by

no test coverage detected