From 535f6708685a8f0246c738ea0eee4e9c18550084 Mon Sep 17 00:00:00 2001 From: Shreyas Goenka Date: Thu, 22 Aug 2024 17:43:22 +0200 Subject: [PATCH] remove most of the debug helpers --- libs/jsonschema/from_type_test.go | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/libs/jsonschema/from_type_test.go b/libs/jsonschema/from_type_test.go index cdd26bf6..6a3ae928 100644 --- a/libs/jsonschema/from_type_test.go +++ b/libs/jsonschema/from_type_test.go @@ -248,15 +248,6 @@ func TestFromTypeNested(t *testing.T) { s, err := FromType(tc.typ, nil) assert.NoError(t, err) assert.Equal(t, tc.expected, s) - - // jsonSchema, err := json.MarshalIndent(s, " ", " ") - // assert.NoError(t, err) - - // expectedJson, err := json.MarshalIndent(tc.expected, " ", " ") - // assert.NoError(t, err) - - // t.Log("[DEBUG] actual: ", string(jsonSchema)) - // t.Log("[DEBUG] expected: ", string(expectedJson)) }) } } @@ -312,15 +303,6 @@ func TestFromTypeRecursive(t *testing.T) { s, err := FromType(reflect.TypeOf(test_types.Outer{}), nil) assert.NoError(t, err) assert.Equal(t, expected, s) - - // jsonSchema, err := json.MarshalIndent(s, " ", " ") - // assert.NoError(t, err) - - // expectedJson, err := json.MarshalIndent(expected, " ", " ") - // assert.NoError(t, err) - - // t.Log("[DEBUG] actual: ", string(jsonSchema)) - // t.Log("[DEBUG] expected: ", string(expectedJson)) } func TestFromTypeSelfReferential(t *testing.T) { @@ -369,15 +351,6 @@ func TestFromTypeSelfReferential(t *testing.T) { s, err := FromType(reflect.TypeOf(test_types.OuterSelf{}), nil) assert.NoError(t, err) assert.Equal(t, expected, s) - - // jsonSchema, err := json.MarshalIndent(s, " ", " ") - // assert.NoError(t, err) - - // expectedJson, err := json.MarshalIndent(expected, " ", " ") - // assert.NoError(t, err) - - // t.Log("[DEBUG] actual: ", string(jsonSchema)) - // t.Log("[DEBUG] expected: ", string(expectedJson)) } func TestFromTypeError(t *testing.T) {