From cfd2d53a7983d95db340a552b622dd005214dd6a Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 27 Jul 2021 23:58:45 +0300 Subject: [PATCH] config: cleanup tests Signed-off-by: Vasiliy Tolstov --- config/reflect_test.go | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 config/reflect_test.go diff --git a/config/reflect_test.go b/config/reflect_test.go deleted file mode 100644 index 2a2baee3..00000000 --- a/config/reflect_test.go +++ /dev/null @@ -1,26 +0,0 @@ -package config_test - -import ( - "testing" - - rutil "github.com/unistack-org/micro/v3/util/reflect" -) - -type Config struct { - SubConfig *SubConfig - Config *Config - Value string -} - -type SubConfig struct { - Value string -} - -func TestReflect(t *testing.T) { - cfg1 := &Config{Value: "cfg1", Config: &Config{Value: "cfg1_1"}, SubConfig: &SubConfig{Value: "cfg1"}} - cfg2, err := rutil.Zero(cfg1) - if err != nil { - t.Fatal(err) - } - t.Logf("dst: %#+v\n", cfg2) -}