Skip to content

Commit

Permalink
fixed more tests
Browse files Browse the repository at this point in the history
Signed-off-by: quobix <[email protected]>
  • Loading branch information
daveshanley committed Oct 8, 2023
1 parent a1c91c5 commit 929fc4c
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions datamodel/high/node_builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,9 @@ func TestNewNodeBuilder_MapKeyHasValue(t *testing.T) {
}

type test1low struct {
Thrug key `yaml:"thrug"`
Thugg *bool `yaml:"thugg"`
Thrug key `yaml:"thrug"`
Thugg *bool `yaml:"thugg"`
Throo *float32 `yaml:"throo"`
}

t2 := test1low{
Expand Down Expand Up @@ -455,8 +456,9 @@ func TestNewNodeBuilder_MapKeyHasValueThatHasValue(t *testing.T) {
}

type test1low struct {
Thomp key `yaml:"thomp"`
Thugg *bool `yaml:"thugg"`
Thomp key `yaml:"thomp"`
Thugg *bool `yaml:"thugg"`
Throo *float32 `yaml:"throo"`
}

t2 := test1low{
Expand Down Expand Up @@ -496,6 +498,7 @@ func TestNewNodeBuilder_MapKeyHasValueThatHasValueMatch(t *testing.T) {
type test1low struct {
Thomp low.NodeReference[map[key]string] `yaml:"thomp"`
Thugg *bool `yaml:"thugg"`
Throo *float32 `yaml:"throo"`
}

g := low.NodeReference[map[key]string]{
Expand Down Expand Up @@ -530,6 +533,7 @@ func TestNewNodeBuilder_MapKeyHasValueThatHasValueMatchKeyNode(t *testing.T) {
type test1low struct {
Thomp low.NodeReference[map[key]string] `yaml:"thomp"`
Thugg *bool `yaml:"thugg"`
Throo *float32 `yaml:"throo"`
}

g := low.NodeReference[map[key]string]{
Expand Down Expand Up @@ -564,6 +568,7 @@ func TestNewNodeBuilder_MapKeyHasValueThatHasValueMatch_NoWrap(t *testing.T) {
type test1low struct {
Thomp map[key]string `yaml:"thomp"`
Thugg *bool `yaml:"thugg"`
Throo *float32 `yaml:"throo"`
}

t2 := test1low{
Expand Down Expand Up @@ -996,7 +1001,8 @@ func TestNewNodeBuilder_ShouldHaveNotDoneTestsLikeThisOhWell(t *testing.T) {

type t1low struct {
Thril low.NodeReference[map[low.KeyReference[string]]low.ValueReference[*key]]
Thugg *bool `yaml:"thugg"`
Thugg *bool `yaml:"thugg"`
Throo *float32 `yaml:"throo"`
}

t1 := test1{
Expand Down

0 comments on commit 929fc4c

Please sign in to comment.