diff options
author | hcpp <hcpp@ydb.tech> | 2023-11-08 22:36:26 +0300 |
---|---|---|
committer | hcpp <hcpp@ydb.tech> | 2023-11-08 22:59:37 +0300 |
commit | 202a1ac82d1e5912c218f715e2b51eedca69d71b (patch) | |
tree | 820c756d93da98ab7b9645687587f102507ac275 /library/go/test | |
parent | 56be5c51d62e26ec258cc3171e3417ab1516a178 (diff) | |
download | ydb-202a1ac82d1e5912c218f715e2b51eedca69d71b.tar.gz |
Revert "metrics have been added"
This reverts commit 16e792be75335b09a4f9f254e3972030af83b1ad, reversing
changes made to 3790f3d771d1a65ed6c0d05f3e0d79ff13308142.
Diffstat (limited to 'library/go/test')
-rw-r--r-- | library/go/test/assertpb/assert.go | 35 | ||||
-rw-r--r-- | library/go/test/assertpb/ya.make | 9 |
2 files changed, 0 insertions, 44 deletions
diff --git a/library/go/test/assertpb/assert.go b/library/go/test/assertpb/assert.go deleted file mode 100644 index f5420748d2..0000000000 --- a/library/go/test/assertpb/assert.go +++ /dev/null @@ -1,35 +0,0 @@ -package assertpb - -import ( - "fmt" - - "github.com/golang/protobuf/proto" - "github.com/google/go-cmp/cmp" - "github.com/stretchr/testify/assert" -) - -type TestingT interface { - Errorf(format string, args ...interface{}) - FailNow() - Helper() -} - -func Equal(t TestingT, expected, actual interface{}, msgAndArgs ...interface{}) bool { - t.Helper() - - if cmp.Equal(expected, actual, cmp.Comparer(proto.Equal)) { - return true - } - - diff := cmp.Diff(expected, actual, cmp.Comparer(proto.Equal)) - return assert.Fail(t, fmt.Sprintf("Not equal: \n"+ - "expected: %s\n"+ - "actual : %s\n"+ - "diff : %s", expected, actual, diff), msgAndArgs) -} - -func Equalf(t TestingT, expected, actual interface{}, msg string, args ...interface{}) bool { - t.Helper() - - return Equal(t, expected, actual, append([]interface{}{msg}, args...)...) -} diff --git a/library/go/test/assertpb/ya.make b/library/go/test/assertpb/ya.make deleted file mode 100644 index 109571f55a..0000000000 --- a/library/go/test/assertpb/ya.make +++ /dev/null @@ -1,9 +0,0 @@ -GO_LIBRARY() - -SRCS(assert.go) - -GO_TEST_SRCS(assert_test.go) - -END() - -RECURSE(gotest) |