MCPcopy Create free account
hub / github.com/Shopify/ghostferry / TestCompareDecompressedDataMissingTarget

Function TestCompareDecompressedDataMissingTarget

inline_verifier_test.go:43–52  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

41}
42
43func TestCompareDecompressedDataMissingTarget(t *testing.T) {
44 source := map[string]map[string][]byte{
45 "1": {"name": []byte("Leszek")},
46 }
47 target := map[string]map[string][]byte{}
48
49 result := compareDecompressedData(source, target)
50
51 assert.Equal(t, map[string]InlineVerifierMismatches{"1": {Pk: "1", MismatchType: MismatchRowMissingOnTarget}}, result)
52}
53
54func TestCompareDecompressedDataMissingSource(t *testing.T) {
55 source := map[string]map[string][]byte{}

Callers

nothing calls this directly

Calls 1

compareDecompressedDataFunction · 0.85

Tested by

no test coverage detected