github.com/kaptinlin/jsonschema@v0.4.6/tests/ref_test.go (about)

     1  package tests
     2  
     3  import "testing"
     4  
     5  // TestRefForTestSuite executes the ref validation tests for Schema Test Suite.
     6  func TestRefForTestSuite(t *testing.T) {
     7  	testJSONSchemaTestSuiteWithFilePath(t, "../testdata/JSON-Schema-Test-Suite/tests/draft2020-12/ref.json")
     8  }
     9  
    10  // TestRefRemoteForTestSuite executes the refRemote validation tests for Schema Test Suite.
    11  func TestRefRemoteForTestSuite(t *testing.T) {
    12  	testJSONSchemaTestSuiteWithFilePath(t, "../testdata/JSON-Schema-Test-Suite/tests/draft2020-12/refRemote.json")
    13  }
    14  
    15  // TestInfiniteLoopDetectionForTestSuite executes the infinite loop detection validation tests for Schema Test Suite.
    16  func TestInfiniteLoopDetectionForTestSuite(t *testing.T) {
    17  	testJSONSchemaTestSuiteWithFilePath(t, "../testdata/JSON-Schema-Test-Suite/tests/draft2020-12/infinite-loop-detection.json")
    18  }