File tree 1 file changed +14
-0
lines changed
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,20 @@ import (
45
45
// JSON schema to CUE and compares it against the output.
46
46
//
47
47
// Set CUE_UPDATE=1 to update test files with the corresponding output.
48
+ //
49
+ // Each test extracts the JSON Schema from a schema file (either
50
+ // schema.json or schema.yaml) and writes the result to
51
+ // out/decode/extract.
52
+ //
53
+ // If there are any files in the "test" directory in the txtar, each one
54
+ // is extracted and validated against the extracted schema. If the file
55
+ // name starts with "err-" it is expected to fail, otherwise it is
56
+ // expected to succeed.
57
+ //
58
+ // The #noverify tag in the txtar header causes verification and
59
+ // instance tests to be skipped.
60
+ //
61
+ // The #openapi tag in the txtar header enables OpenAPI extraction mode.
48
62
func TestDecode (t * testing.T ) {
49
63
test := cuetxtar.TxTarTest {
50
64
Root : "./testdata" ,
You can’t perform that action at this time.
0 commit comments