| 1 | package model_testscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/model_test`/ |
| 2 | |
| 3 | import ( |
| 4 | "testingscip-go gomod github.com/golang/go/src go1.25 testing/" |
| 5 | |
| 6 | "github.com/tomwright/dasel/v3/modelscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/model`/" |
| 7 | ) |
| 8 | |
| 9 | func TestValue_IsBranchscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/model_test`/TestValue_IsBranch().(t *testingscip-go gomod github.com/golang/go/src go1.25 testing/.Tscip-go gomod github.com/golang/go/src go1.25 testing/T#) { |
| 10 | val := modelscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/model`/.NewNullValuescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/model`/NewNullValue().() |
| 11 | if exp, got := false, val.IsBranchscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/model`/Value#IsBranch().(); exp != got { |
| 12 | t.Errorfscip-go gomod github.com/golang/go/src go1.25 testing/common#Errorf().("expected %v, got %v", exp, got) |
| 13 | } |
| 14 | val.MarkAsBranchscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/model`/Value#MarkAsBranch().() |
| 15 | if exp, got := true, val.IsBranchscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/model`/Value#IsBranch().(); exp != got { |
| 16 | t.Errorfscip-go gomod github.com/golang/go/src go1.25 testing/common#Errorf().("expected %v, got %v", exp, got) |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | func TestValue_IsSpreadscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/model_test`/TestValue_IsSpread().(t *testingscip-go gomod github.com/golang/go/src go1.25 testing/.Tscip-go gomod github.com/golang/go/src go1.25 testing/T#) { |
| 21 | val := modelscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/model`/.NewNullValuescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/model`/NewNullValue().() |
| 22 | if exp, got := false, val.IsSpreadscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/model`/Value#IsSpread().(); exp != got { |
| 23 | t.Errorfscip-go gomod github.com/golang/go/src go1.25 testing/common#Errorf().("expected %v, got %v", exp, got) |
| 24 | } |
| 25 | val.MarkAsSpreadscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/model`/Value#MarkAsSpread().() |
| 26 | if exp, got := true, val.IsSpreadscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/model`/Value#IsSpread().(); exp != got { |
| 27 | t.Errorfscip-go gomod github.com/golang/go/src go1.25 testing/common#Errorf().("expected %v, got %v", exp, got) |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | func TestValue_IsIgnorescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/model_test`/TestValue_IsIgnore().(t *testingscip-go gomod github.com/golang/go/src go1.25 testing/.Tscip-go gomod github.com/golang/go/src go1.25 testing/T#) { |
| 32 | val := modelscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/model`/.NewNullValuescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/model`/NewNullValue().() |
| 33 | if exp, got := false, val.IsIgnorescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/model`/Value#IsIgnore().(); exp != got { |
| 34 | t.Errorfscip-go gomod github.com/golang/go/src go1.25 testing/common#Errorf().("expected %v, got %v", exp, got) |
| 35 | } |
| 36 | val.MarkAsIgnorescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/model`/Value#MarkAsIgnore().() |
| 37 | if exp, got := true, val.IsIgnorescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/model`/Value#IsIgnore().(); exp != got { |
| 38 | t.Errorfscip-go gomod github.com/golang/go/src go1.25 testing/common#Errorf().("expected %v, got %v", exp, got) |
| 39 | } |
| 40 | } |