v0.0.342 support json data in enum comment
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Failing after 1m29s

This commit is contained in:
2023-12-07 17:57:06 +01:00
parent b0be93a7a0
commit f042183433
9 changed files with 227 additions and 34 deletions

View File

@@ -12,8 +12,8 @@ import (
"time"
)
//go:embed _test_example.tgz
var CSIDExampleModels []byte
//go:embed _test_example_1.tgz
var CSIDExampleModels1 []byte
func TestGenerateCSIDSpecs(t *testing.T) {
@@ -21,7 +21,7 @@ func TestGenerateCSIDSpecs(t *testing.T) {
tmpDir := filepath.Join(t.TempDir(), langext.MustHexUUID())
err := os.WriteFile(tmpFile, CSIDExampleModels, 0o777)
err := os.WriteFile(tmpFile, CSIDExampleModels1, 0o777)
tst.AssertNoErr(t, err)
t.Cleanup(func() { _ = os.Remove(tmpFile) })