Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes test results #189

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion testdata/invalidlineage/defonly.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ import "github.com/grafana/thema"
thema.#Lineage
-- out/bindfail --
invalid lineage, #Lineage.name must be concrete:
../../../../../../../cue.mod/pkg/github.com/grafana/thema/lineage.cue:16:2
../../../../../../cue.mod/pkg/github.com/grafana/thema/lineage.cue:16:2
2 changes: 1 addition & 1 deletion testdata/invalidlineage/empty.txtar
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- in.cue --
-- out/bindfail --
not a lineage, missing #Lineage.name:
../../../../../../../in.cue:1:1
../../../../../../in.cue:1:1
4 changes: 2 additions & 2 deletions testdata/isappendonly/invalid/boundaries.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ lin2: schemas: [{
}]
-- out/isappendonly-fail --
field anInt not present in {anInt:*12 | >0 & <=24 & int}:
../../../../../../../../cue.mod/pkg/github.com/grafana/thema/lineage.cue:223:10
../../../../../../../../in.cue:7:10
../../../../../../../cue.mod/pkg/github.com/grafana/thema/lineage.cue:223:10
../../../../../../../in.cue:7:10
missing field "anInt"
4 changes: 2 additions & 2 deletions testdata/isappendonly/invalid/default.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ lin2: schemas: [{
}]
-- out/isappendonly-fail --
field aunion not present in {aunion:*"bar" | "foo" | "baz"}:
../../../../../../../../cue.mod/pkg/github.com/grafana/thema/lineage.cue:223:10
../../../../../../../../in.cue:16:13
../../../../../../../cue.mod/pkg/github.com/grafana/thema/lineage.cue:223:10
../../../../../../../in.cue:16:13
missing field "aunion"
6 changes: 3 additions & 3 deletions testdata/isappendonly/invalid/embedref.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ lin2: schemas: [{
}]
-- out/isappendonly-fail --
field #EmbedRef not present in {#EmbedRef:{refField1:string,refField2:1},refField1:string,refField2:1}:
../../../../../../../../cue.mod/pkg/github.com/grafana/thema/lineage.cue:223:10
../../../../../../../../in.cue:21:13
../../../../../../../cue.mod/pkg/github.com/grafana/thema/lineage.cue:223:10
../../../../../../../in.cue:21:13
field refField2 not present in {refField1:string,refField2:1}:
../../../../../../../../in.cue:24:20
../../../../../../../in.cue:24:20
missing field "#EmbedRef"
6 changes: 3 additions & 3 deletions testdata/isappendonly/invalid/nested.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ lin2: schemas: [{
}]
-- out/isappendonly-fail --
field aNewOptionalField not present in {aField:string}:
../../../../../../../../in.cue:8:13
../../../../../../../in.cue:8:13
field anObject not present in {anObject:{aField:string}}:
../../../../../../../../cue.mod/pkg/github.com/grafana/thema/lineage.cue:223:10
../../../../../../../../in.cue:7:10
../../../../../../../cue.mod/pkg/github.com/grafana/thema/lineage.cue:223:10
../../../../../../../in.cue:7:10
missing field "anObject"
4 changes: 2 additions & 2 deletions testdata/isappendonly/invalid/noref.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ lin2: schemas: [{
}]
-- out/isappendonly-fail --
field #Baz not present in {someField:string,#Baz:{run:string,tell:bytes}}:
../../../../../../../../cue.mod/pkg/github.com/grafana/thema/lineage.cue:223:10
../../../../../../../../in.cue:22:13
../../../../../../../cue.mod/pkg/github.com/grafana/thema/lineage.cue:223:10
../../../../../../../in.cue:22:13
missing field "#Baz"
required field is optional in subsumed value: dat
4 changes: 2 additions & 2 deletions testdata/isappendonly/invalid/optional.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ lin2: schemas: [{
}]
-- out/isappendonly-fail --
field aNewOptionalField not present in {aField:string}:
../../../../../../../../cue.mod/pkg/github.com/grafana/thema/lineage.cue:223:10
../../../../../../../../in.cue:7:10
../../../../../../../cue.mod/pkg/github.com/grafana/thema/lineage.cue:223:10
../../../../../../../in.cue:7:10
missing field "aNewOptionalField"
4 changes: 2 additions & 2 deletions testdata/isappendonly/invalid/refstruct.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ lin2: schemas: [{
}]
-- out/isappendonly-fail --
field aBaz not present in {aBaz:{run:string,dat:>=-2147483648 & <=2147483647 & int},#Baz:{run:string,dat:>=-2147483648 & <=2147483647 & int}}:
../../../../../../../../cue.mod/pkg/github.com/grafana/thema/lineage.cue:223:10
../../../../../../../../in.cue:22:13
../../../../../../../cue.mod/pkg/github.com/grafana/thema/lineage.cue:223:10
../../../../../../../in.cue:22:13
missing field "aBaz"
required field is optional in subsumed value: tell
10 changes: 5 additions & 5 deletions testdata/isappendonly/invalid/stringconstraint.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ lin2: schemas: [{
}]
-- out/isappendonly-fail --
field aString not present in {aString:strings.MinRunes(2),anObject:{aField:int}}:
../../../../../../../../cue.mod/pkg/github.com/grafana/thema/lineage.cue:223:10
../../../../../../../../in.cue:25:10
../../../../../../../cue.mod/pkg/github.com/grafana/thema/lineage.cue:223:10
../../../../../../../in.cue:25:10
missing field "aString"
invalid value strings.MinRunes(2) (does not satisfy strings.MinRunes(1)): error in call to strings.MinRunes: non-concrete value string:
../../../../../../../../in.cue:13:21
../../../../../../../../in.cue:13:38
../../../../../../../../in.cue:26:21
../../../../../../../in.cue:13:21
../../../../../../../in.cue:13:38
../../../../../../../in.cue:26:21
Loading