Skip to content

Commit cd90f33

Browse files
authored
smart diff to testutil.GatherAndCompare (#998)
* added smart diff to testutil.GatherAndCompare Signed-off-by: Sourik Ghosh <[email protected]> * v2 testuitls added for better diff Signed-off-by: Sourik Ghosh <[email protected]> * replaced CollectAndCompare to CollectAndCompareV2 in testutil_test Signed-off-by: Sourik Ghosh <[email protected]> * renamed methods from v2 to withT Signed-off-by: Sourik Ghosh <[email protected]> * replaced testify with custom diff func Signed-off-by: Sourik Ghosh <[email protected]> * difflib GetUnifiedDiffString added with test Signed-off-by: Sourik Ghosh <[email protected]> * license meta data added to file Signed-off-by: Sourik Ghosh <[email protected]> * moved difflib to internal Signed-off-by: Sourik Ghosh <[email protected]>
1 parent 0c691ed commit cd90f33

File tree

5 files changed

+989
-17
lines changed

5 files changed

+989
-17
lines changed

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module github.com/prometheus/client_golang
33
require (
44
github.com/beorn7/perks v1.0.1
55
github.com/cespare/xxhash/v2 v2.1.2
6+
github.com/davecgh/go-spew v1.1.1
67
github.com/golang/protobuf v1.5.2
78
github.com/jpillora/backoff v1.0.0 // indirect
89
github.com/json-iterator/go v1.1.12

0 commit comments

Comments
 (0)