MCPcopy Index your code
hub / github.com/keploy/keploy / Diff

Method Diff

pkg/agent/proxy/integrations/schemanoise/schemanoise.go:93–95  ·  view source on GitHub ↗

Diff implements Adapter.Diff for JSON bodies via DetectJSONDrift. The mock is unused — JSON needs no header/metadata to decode.

(_ *models.Mock, recorded, live []byte, known map[string][]string, valIsNoise func(string) bool)

Source from the content-addressed store, hash-verified

91// Diff implements Adapter.Diff for JSON bodies via DetectJSONDrift. The mock is
92// unused — JSON needs no header/metadata to decode.
93func (JSONDiffer) Diff(_ *models.Mock, recorded, live []byte, known map[string][]string, valIsNoise func(string) bool) (map[string][]string, bool) {
94 return DetectJSONDrift(recorded, live, known, valIsNoise)
95}
96
97// Engine runs the schema-noise learn/enforce flow for one protocol through its
98// Adapter. Construct one per replay with the resolved flags via New.

Callers

nothing calls this directly

Calls 1

DetectJSONDriftFunction · 0.85

Tested by

no test coverage detected