| 1 | package internalscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/ |
| 2 | |
| 3 | import ( |
| 4 | "testingscip-go gomod github.com/golang/go/src go1.25 testing/" |
| 5 | ) |
| 6 | |
| 7 | // Tests based on the official KDL v1 spec test suite: |
| 8 | // https://github.com/kdl-org/kdl/tree/release/v1/tests/test_cases |
| 9 | |
| 10 | // --- v1 booleans (bare true/false) --- |
| 11 | |
| 12 | func TestSpecV1_BooleanArgscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/TestSpecV1_BooleanArg().(t *testingscip-go gomod github.com/golang/go/src go1.25 testing/.Tscip-go gomod github.com/golang/go/src go1.25 testing/T#) { |
| 13 | doc, err := Parsescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Parse().("node false true") |
| 14 | if err != nil { |
| 15 | t.Fatalscip-go gomod github.com/golang/go/src go1.25 testing/common#Fatal().(err) |
| 16 | } |
| 17 | n := doc.Nodesscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Document#Nodes.[0] |
| 18 | assertArgCountscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertArgCount().(t, n, 2) |
| 19 | assertArgBoolscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertArgBool().(t, n, 0, false) |
| 20 | assertArgBoolscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertArgBool().(t, n, 1, true) |
| 21 | } |
| 22 | |
| 23 | func TestSpecV1_BooleanPropscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/TestSpecV1_BooleanProp().(t *testingscip-go gomod github.com/golang/go/src go1.25 testing/.Tscip-go gomod github.com/golang/go/src go1.25 testing/T#) { |
| 24 | doc, err := Parsescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Parse().("node prop1=true prop2=false") |
| 25 | if err != nil { |
| 26 | t.Fatalscip-go gomod github.com/golang/go/src go1.25 testing/common#Fatal().(err) |
| 27 | } |
| 28 | n := doc.Nodesscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Document#Nodes.[0] |
| 29 | assertPropBoolscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertPropBool().(t, n, "prop1", true) |
| 30 | assertPropBoolscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertPropBool().(t, n, "prop2", false) |
| 31 | } |
| 32 | |
| 33 | // --- v1 null (bare null) --- |
| 34 | |
| 35 | func TestSpecV1_NullArgscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/TestSpecV1_NullArg().(t *testingscip-go gomod github.com/golang/go/src go1.25 testing/.Tscip-go gomod github.com/golang/go/src go1.25 testing/T#) { |
| 36 | doc, err := Parsescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Parse().("node null") |
| 37 | if err != nil { |
| 38 | t.Fatalscip-go gomod github.com/golang/go/src go1.25 testing/common#Fatal().(err) |
| 39 | } |
| 40 | assertArgNullscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertArgNull().(t, doc.Nodesscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Document#Nodes.[0], 0) |
| 41 | } |
| 42 | |
| 43 | func TestSpecV1_NullPropscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/TestSpecV1_NullProp().(t *testingscip-go gomod github.com/golang/go/src go1.25 testing/.Tscip-go gomod github.com/golang/go/src go1.25 testing/T#) { |
| 44 | doc, err := Parsescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Parse().("node prop=null") |
| 45 | if err != nil { |
| 46 | t.Fatalscip-go gomod github.com/golang/go/src go1.25 testing/common#Fatal().(err) |
| 47 | } |
| 48 | assertPropNullscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertPropNull().(t, doc.Nodesscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Document#Nodes.[0], "prop") |
| 49 | } |
| 50 | |
| 51 | // --- v1 raw strings (r"..." syntax) --- |
| 52 | |
| 53 | func TestSpecV1_RawStringArgscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/TestSpecV1_RawStringArg().(t *testingscip-go gomod github.com/golang/go/src go1.25 testing/.Tscip-go gomod github.com/golang/go/src go1.25 testing/T#) { |
| 54 | doc, err := Parsescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Parse().("node_1 r\"arg\\n\"\nnode_2 r#\"\"arg\\n\"and stuff\"#") |
| 55 | if err != nil { |
| 56 | t.Fatalscip-go gomod github.com/golang/go/src go1.25 testing/common#Fatal().(err) |
| 57 | } |
| 58 | // r"..." does NOT process escapes |
| 59 | assertArgStringscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertArgString().(t, doc.Nodesscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Document#Nodes.[0], 0, "arg\\n") |
| 60 | assertArgStringscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertArgString().(t, doc.Nodesscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Document#Nodes.[1], 0, "\"arg\\n\"and stuff") |
| 61 | } |
| 62 | |
| 63 | func TestSpecV1_RawStringBackslashscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/TestSpecV1_RawStringBackslash().(t *testingscip-go gomod github.com/golang/go/src go1.25 testing/.Tscip-go gomod github.com/golang/go/src go1.25 testing/T#) { |
| 64 | doc, err := Parsescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Parse().("node r\"\\\"") |
| 65 | if err != nil { |
| 66 | t.Fatalscip-go gomod github.com/golang/go/src go1.25 testing/common#Fatal().(err) |
| 67 | } |
| 68 | assertArgStringscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertArgString().(t, doc.Nodesscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Document#Nodes.[0], 0, "\\") |
| 69 | } |
| 70 | |
| 71 | func TestSpecV1_RawStringJustBackslashscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/TestSpecV1_RawStringJustBackslash().(t *testingscip-go gomod github.com/golang/go/src go1.25 testing/.Tscip-go gomod github.com/golang/go/src go1.25 testing/T#) { |
| 72 | doc, err := Parsescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Parse().("node r\"\\\"") |
| 73 | if err != nil { |
| 74 | t.Fatalscip-go gomod github.com/golang/go/src go1.25 testing/common#Fatal().(err) |
| 75 | } |
| 76 | assertArgStringscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertArgString().(t, doc.Nodesscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Document#Nodes.[0], 0, "\\") |
| 77 | } |
| 78 | |
| 79 | func TestSpecV1_RawStringPropscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/TestSpecV1_RawStringProp().(t *testingscip-go gomod github.com/golang/go/src go1.25 testing/.Tscip-go gomod github.com/golang/go/src go1.25 testing/T#) { |
| 80 | doc, err := Parsescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Parse().("node prop=r\"value with \\n\"") |
| 81 | if err != nil { |
| 82 | t.Fatalscip-go gomod github.com/golang/go/src go1.25 testing/common#Fatal().(err) |
| 83 | } |
| 84 | assertPropStringscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertPropString().(t, doc.Nodesscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Document#Nodes.[0], "prop", "value with \\n") |
| 85 | } |
| 86 | |
| 87 | func TestSpecV1_RawStringHashNoEscscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/TestSpecV1_RawStringHashNoEsc().(t *testingscip-go gomod github.com/golang/go/src go1.25 testing/.Tscip-go gomod github.com/golang/go/src go1.25 testing/T#) { |
| 88 | doc, err := Parsescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Parse().("node r\"#\"") |
| 89 | if err != nil { |
| 90 | t.Fatalscip-go gomod github.com/golang/go/src go1.25 testing/common#Fatal().(err) |
| 91 | } |
| 92 | assertArgStringscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertArgString().(t, doc.Nodesscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Document#Nodes.[0], 0, "#") |
| 93 | } |
| 94 | |
| 95 | func TestSpecV1_RawStringWithHashesscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/TestSpecV1_RawStringWithHashes().(t *testingscip-go gomod github.com/golang/go/src go1.25 testing/.Tscip-go gomod github.com/golang/go/src go1.25 testing/T#) { |
| 96 | doc, err := Parsescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Parse().("node r##\"contains #\"quotes\"# here\"##") |
| 97 | if err != nil { |
| 98 | t.Fatalscip-go gomod github.com/golang/go/src go1.25 testing/common#Fatal().(err) |
| 99 | } |
| 100 | assertArgStringscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertArgString().(t, doc.Nodesscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Document#Nodes.[0], 0, "contains #\"quotes\"# here") |
| 101 | } |
| 102 | |
| 103 | // --- v1 escape: \/ is valid in v1 --- |
| 104 | |
| 105 | func TestSpecV1_SolidusEscapescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/TestSpecV1_SolidusEscape().(t *testingscip-go gomod github.com/golang/go/src go1.25 testing/.Tscip-go gomod github.com/golang/go/src go1.25 testing/T#) { |
| 106 | // Note: our parser has \/ as invalid — this tests the v1 expectation |
| 107 | // that \/ should produce / |
| 108 | // The v1 spec includes \/ as valid |
| 109 | doc, err := Parsescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Parse().("node \"\\/\"") |
| 110 | if err != nil { |
| 111 | // Our tokenizer rejects \/ — this is v2 behavior. |
| 112 | // If we wanted strict v1 compat we'd allow it. |
| 113 | t.Skipfscip-go gomod github.com/golang/go/src go1.25 testing/common#Skipf().("\\/ not supported (v2 behavior): %v", err) |
| 114 | return |
| 115 | } |
| 116 | assertArgStringscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertArgString().(t, doc.Nodesscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Document#Nodes.[0], 0, "/") |
| 117 | } |
| 118 | |
| 119 | // --- v1 version auto-detection --- |
| 120 | |
| 121 | func TestSpecV1_VersionDetectionFromTruescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/TestSpecV1_VersionDetectionFromTrue().(t *testingscip-go gomod github.com/golang/go/src go1.25 testing/.Tscip-go gomod github.com/golang/go/src go1.25 testing/T#) { |
| 122 | tok := NewTokenizerscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/NewTokenizer().("true") |
| 123 | token, _ := tok.NextTokenscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Tokenizer#NextToken().() |
| 124 | if token.Typescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Token#Type. != TokenTruescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/TokenTrue. { |
| 125 | t.Fatalfscip-go gomod github.com/golang/go/src go1.25 testing/common#Fatalf().("expected true token, got %v", token.Typescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Token#Type.) |
| 126 | } |
| 127 | if tok.Versionscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Tokenizer#Version. != Version1scip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Version1. { |
| 128 | t.Errorfscip-go gomod github.com/golang/go/src go1.25 testing/common#Errorf().("expected version 1 auto-detection, got %v", tok.Versionscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Tokenizer#Version.) |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | func TestSpecV1_VersionDetectionFromFalsescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/TestSpecV1_VersionDetectionFromFalse().(t *testingscip-go gomod github.com/golang/go/src go1.25 testing/.Tscip-go gomod github.com/golang/go/src go1.25 testing/T#) { |
| 133 | tok := NewTokenizerscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/NewTokenizer().("false") |
| 134 | token, _ := tok.NextTokenscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Tokenizer#NextToken().() |
| 135 | if token.Typescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Token#Type. != TokenFalsescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/TokenFalse. { |
| 136 | t.Fatalfscip-go gomod github.com/golang/go/src go1.25 testing/common#Fatalf().("expected false token, got %v", token.Typescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Token#Type.) |
| 137 | } |
| 138 | if tok.Versionscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Tokenizer#Version. != Version1scip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Version1. { |
| 139 | t.Errorfscip-go gomod github.com/golang/go/src go1.25 testing/common#Errorf().("expected version 1 auto-detection, got %v", tok.Versionscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Tokenizer#Version.) |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | func TestSpecV1_VersionDetectionFromNullscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/TestSpecV1_VersionDetectionFromNull().(t *testingscip-go gomod github.com/golang/go/src go1.25 testing/.Tscip-go gomod github.com/golang/go/src go1.25 testing/T#) { |
| 144 | tok := NewTokenizerscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/NewTokenizer().("null") |
| 145 | token, _ := tok.NextTokenscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Tokenizer#NextToken().() |
| 146 | if token.Typescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Token#Type. != TokenNullscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/TokenNull. { |
| 147 | t.Fatalfscip-go gomod github.com/golang/go/src go1.25 testing/common#Fatalf().("expected null token, got %v", token.Typescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Token#Type.) |
| 148 | } |
| 149 | if tok.Versionscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Tokenizer#Version. != Version1scip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Version1. { |
| 150 | t.Errorfscip-go gomod github.com/golang/go/src go1.25 testing/common#Errorf().("expected version 1 auto-detection, got %v", tok.Versionscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Tokenizer#Version.) |
| 151 | } |
| 152 | } |
| 153 | |
| 154 | func TestSpecV1_VersionDetectionFromRawStringscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/TestSpecV1_VersionDetectionFromRawString().(t *testingscip-go gomod github.com/golang/go/src go1.25 testing/.Tscip-go gomod github.com/golang/go/src go1.25 testing/T#) { |
| 155 | tok := NewTokenizerscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/NewTokenizer().(`r"hello"`) |
| 156 | token, _ := tok.NextTokenscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Tokenizer#NextToken().() |
| 157 | if token.Typescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Token#Type. != TokenRawStringscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/TokenRawString. { |
| 158 | t.Fatalfscip-go gomod github.com/golang/go/src go1.25 testing/common#Fatalf().("expected raw string token, got %v", token.Typescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Token#Type.) |
| 159 | } |
| 160 | if tok.Versionscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Tokenizer#Version. != Version1scip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Version1. { |
| 161 | t.Errorfscip-go gomod github.com/golang/go/src go1.25 testing/common#Errorf().("expected version 1 auto-detection, got %v", tok.Versionscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Tokenizer#Version.) |
| 162 | } |
| 163 | } |
| 164 | |
| 165 | // --- v1 version marker --- |
| 166 | |
| 167 | func TestSpecV1_VersionMarkerscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/TestSpecV1_VersionMarker().(t *testingscip-go gomod github.com/golang/go/src go1.25 testing/.Tscip-go gomod github.com/golang/go/src go1.25 testing/T#) { |
| 168 | doc, err := Parsescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Parse().("/- kdl-version 1\nnode true false null") |
| 169 | if err != nil { |
| 170 | t.Fatalscip-go gomod github.com/golang/go/src go1.25 testing/common#Fatal().(err) |
| 171 | } |
| 172 | assertNodeCountscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertNodeCount().(t, doc, 1) |
| 173 | n := doc.Nodesscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Document#Nodes.[0] |
| 174 | assertArgCountscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertArgCount().(t, n, 3) |
| 175 | assertArgBoolscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertArgBool().(t, n, 0, true) |
| 176 | assertArgBoolscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertArgBool().(t, n, 1, false) |
| 177 | assertArgNullscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertArgNull().(t, n, 2) |
| 178 | } |
| 179 | |
| 180 | // --- v1 all escapes --- |
| 181 | |
| 182 | func TestSpecV1_AllEscapesscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/TestSpecV1_AllEscapes().(t *testingscip-go gomod github.com/golang/go/src go1.25 testing/.Tscip-go gomod github.com/golang/go/src go1.25 testing/T#) { |
| 183 | // In v1, the valid escapes are: \", \\, \/, \b, \f, \n, \r, \t, \u{...} |
| 184 | doc, err := Parsescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Parse().(`node "\"\\\n\r\t\b\f"`) |
| 185 | if err != nil { |
| 186 | t.Fatalscip-go gomod github.com/golang/go/src go1.25 testing/common#Fatal().(err) |
| 187 | } |
| 188 | expected := "\"\\\n\r\t\b\f" |
| 189 | assertArgStringscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertArgString().(t, doc.Nodesscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Document#Nodes.[0], 0, expected) |
| 190 | } |
| 191 | |
| 192 | // --- v1 documents shared with v2 (should produce same AST) --- |
| 193 | |
| 194 | func TestSpecV1_SharedSyntax_StringArgscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/TestSpecV1_SharedSyntax_StringArg().(t *testingscip-go gomod github.com/golang/go/src go1.25 testing/.Tscip-go gomod github.com/golang/go/src go1.25 testing/T#) { |
| 195 | doc, err := Parsescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Parse().(`node "hello"`) |
| 196 | if err != nil { |
| 197 | t.Fatalscip-go gomod github.com/golang/go/src go1.25 testing/common#Fatal().(err) |
| 198 | } |
| 199 | assertArgStringscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertArgString().(t, doc.Nodesscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Document#Nodes.[0], 0, "hello") |
| 200 | } |
| 201 | |
| 202 | func TestSpecV1_SharedSyntax_NumericArgscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/TestSpecV1_SharedSyntax_NumericArg().(t *testingscip-go gomod github.com/golang/go/src go1.25 testing/.Tscip-go gomod github.com/golang/go/src go1.25 testing/T#) { |
| 203 | doc, err := Parsescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Parse().("node 42 3.14 0xff 0o77 0b101") |
| 204 | if err != nil { |
| 205 | t.Fatalscip-go gomod github.com/golang/go/src go1.25 testing/common#Fatal().(err) |
| 206 | } |
| 207 | n := doc.Nodesscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Document#Nodes.[0] |
| 208 | assertArgIntscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertArgInt().(t, n, 0, 42) |
| 209 | assertArgFloatscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertArgFloat().(t, n, 1, 3.14) |
| 210 | assertArgIntscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertArgInt().(t, n, 2, 255) |
| 211 | assertArgIntscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertArgInt().(t, n, 3, 63) |
| 212 | assertArgIntscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertArgInt().(t, n, 4, 5) |
| 213 | } |
| 214 | |
| 215 | func TestSpecV1_SharedSyntax_Propertiesscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/TestSpecV1_SharedSyntax_Properties().(t *testingscip-go gomod github.com/golang/go/src go1.25 testing/.Tscip-go gomod github.com/golang/go/src go1.25 testing/T#) { |
| 216 | doc, err := Parsescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Parse().(`node key="value" count=5`) |
| 217 | if err != nil { |
| 218 | t.Fatalscip-go gomod github.com/golang/go/src go1.25 testing/common#Fatal().(err) |
| 219 | } |
| 220 | assertPropStringscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertPropString().(t, doc.Nodesscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Document#Nodes.[0], "key", "value") |
| 221 | assertPropIntscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertPropInt().(t, doc.Nodesscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Document#Nodes.[0], "count", 5) |
| 222 | } |
| 223 | |
| 224 | func TestSpecV1_SharedSyntax_Childrenscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/TestSpecV1_SharedSyntax_Children().(t *testingscip-go gomod github.com/golang/go/src go1.25 testing/.Tscip-go gomod github.com/golang/go/src go1.25 testing/T#) { |
| 225 | doc, err := Parsescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Parse().("parent {\n child1\n child2\n}") |
| 226 | if err != nil { |
| 227 | t.Fatalscip-go gomod github.com/golang/go/src go1.25 testing/common#Fatal().(err) |
| 228 | } |
| 229 | assertChildCountscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertChildCount().(t, doc.Nodesscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Document#Nodes.[0], 2) |
| 230 | } |
| 231 | |
| 232 | func TestSpecV1_SharedSyntax_SlashDashscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/TestSpecV1_SharedSyntax_SlashDash().(t *testingscip-go gomod github.com/golang/go/src go1.25 testing/.Tscip-go gomod github.com/golang/go/src go1.25 testing/T#) { |
| 233 | doc, err := Parsescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Parse().("/- skipped\nkept") |
| 234 | if err != nil { |
| 235 | t.Fatalscip-go gomod github.com/golang/go/src go1.25 testing/common#Fatal().(err) |
| 236 | } |
| 237 | assertNodeCountscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertNodeCount().(t, doc, 1) |
| 238 | assertNodeNamescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertNodeName().(t, doc.Nodesscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Document#Nodes.[0], "kept") |
| 239 | } |
| 240 | |
| 241 | func TestSpecV1_SharedSyntax_TypeAnnotationscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/TestSpecV1_SharedSyntax_TypeAnnotation().(t *testingscip-go gomod github.com/golang/go/src go1.25 testing/.Tscip-go gomod github.com/golang/go/src go1.25 testing/T#) { |
| 242 | doc, err := Parsescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Parse().("(mytype)node (u8)42") |
| 243 | if err != nil { |
| 244 | t.Fatalscip-go gomod github.com/golang/go/src go1.25 testing/common#Fatal().(err) |
| 245 | } |
| 246 | n := doc.Nodesscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Document#Nodes.[0] |
| 247 | if n.Typescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Node#Type. != "mytype" { |
| 248 | t.Errorfscip-go gomod github.com/golang/go/src go1.25 testing/common#Errorf().("expected type 'mytype', got %q", n.Typescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Node#Type.) |
| 249 | } |
| 250 | if n.Argumentsscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Node#Arguments.[0].Typescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Value#Type. != "u8" { |
| 251 | t.Errorfscip-go gomod github.com/golang/go/src go1.25 testing/common#Errorf().("expected arg type 'u8', got %q", n.Argumentsscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Node#Arguments.[0].Typescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Value#Type.) |
| 252 | } |
| 253 | } |
| 254 | |
| 255 | func TestSpecV1_SharedSyntax_BlockCommentscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/TestSpecV1_SharedSyntax_BlockComment().(t *testingscip-go gomod github.com/golang/go/src go1.25 testing/.Tscip-go gomod github.com/golang/go/src go1.25 testing/T#) { |
| 256 | doc, err := Parsescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Parse().("node /* comment */ arg") |
| 257 | if err != nil { |
| 258 | t.Fatalscip-go gomod github.com/golang/go/src go1.25 testing/common#Fatal().(err) |
| 259 | } |
| 260 | assertArgStringscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertArgString().(t, doc.Nodesscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Document#Nodes.[0], 0, "arg") |
| 261 | } |
| 262 | |
| 263 | func TestSpecV1_SharedSyntax_NestedBlockCommentscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/TestSpecV1_SharedSyntax_NestedBlockComment().(t *testingscip-go gomod github.com/golang/go/src go1.25 testing/.Tscip-go gomod github.com/golang/go/src go1.25 testing/T#) { |
| 264 | doc, err := Parsescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Parse().("node /* a /* b */ c */ arg") |
| 265 | if err != nil { |
| 266 | t.Fatalscip-go gomod github.com/golang/go/src go1.25 testing/common#Fatal().(err) |
| 267 | } |
| 268 | assertArgStringscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertArgString().(t, doc.Nodesscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Document#Nodes.[0], 0, "arg") |
| 269 | } |
| 270 | |
| 271 | func TestSpecV1_SharedSyntax_LineContinuationscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/TestSpecV1_SharedSyntax_LineContinuation().(t *testingscip-go gomod github.com/golang/go/src go1.25 testing/.Tscip-go gomod github.com/golang/go/src go1.25 testing/T#) { |
| 272 | doc, err := Parsescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Parse().("node \\\n arg") |
| 273 | if err != nil { |
| 274 | t.Fatalscip-go gomod github.com/golang/go/src go1.25 testing/common#Fatal().(err) |
| 275 | } |
| 276 | assertArgStringscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertArgString().(t, doc.Nodesscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Document#Nodes.[0], 0, "arg") |
| 277 | } |
| 278 | |
| 279 | func TestSpecV1_SharedSyntax_Semicolonsscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/TestSpecV1_SharedSyntax_Semicolons().(t *testingscip-go gomod github.com/golang/go/src go1.25 testing/.Tscip-go gomod github.com/golang/go/src go1.25 testing/T#) { |
| 280 | doc, err := Parsescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Parse().("a; b; c") |
| 281 | if err != nil { |
| 282 | t.Fatalscip-go gomod github.com/golang/go/src go1.25 testing/common#Fatal().(err) |
| 283 | } |
| 284 | assertNodeCountscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertNodeCount().(t, doc, 3) |
| 285 | } |
| 286 | |
| 287 | func TestSpecV1_SharedSyntax_UnicodeEscapescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/TestSpecV1_SharedSyntax_UnicodeEscape().(t *testingscip-go gomod github.com/golang/go/src go1.25 testing/.Tscip-go gomod github.com/golang/go/src go1.25 testing/T#) { |
| 288 | doc, err := Parsescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Parse().(`node "\u{0041}"`) |
| 289 | if err != nil { |
| 290 | t.Fatalscip-go gomod github.com/golang/go/src go1.25 testing/common#Fatal().(err) |
| 291 | } |
| 292 | assertArgStringscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertArgString().(t, doc.Nodesscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Document#Nodes.[0], 0, "A") |
| 293 | } |
| 294 | |
| 295 | // --- Bare arg (v1 feature: bare identifier as value) --- |
| 296 | |
| 297 | func TestSpecV1_BareArgscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/TestSpecV1_BareArg().(t *testingscip-go gomod github.com/golang/go/src go1.25 testing/.Tscip-go gomod github.com/golang/go/src go1.25 testing/T#) { |
| 298 | doc, err := Parsescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Parse().("node a") |
| 299 | if err != nil { |
| 300 | t.Fatalscip-go gomod github.com/golang/go/src go1.25 testing/common#Fatal().(err) |
| 301 | } |
| 302 | // Bare identifiers used as args are treated as strings |
| 303 | assertArgStringscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertArgString().(t, doc.Nodesscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Document#Nodes.[0], 0, "a") |
| 304 | } |
| 305 | |
| 306 | // --- Complex v1 document --- |
| 307 | |
| 308 | func TestSpecV1_ComplexDocumentscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/TestSpecV1_ComplexDocument().(t *testingscip-go gomod github.com/golang/go/src go1.25 testing/.Tscip-go gomod github.com/golang/go/src go1.25 testing/T#) { |
| 309 | input := `// Configuration file |
| 310 | name "My App" |
| 311 | version "1.0" |
| 312 | debug true |
| 313 | |
| 314 | server { |
| 315 | host "localhost" |
| 316 | port 8080 |
| 317 | tls false |
| 318 | } |
| 319 | |
| 320 | plugins { |
| 321 | plugin "auth" enabled=true |
| 322 | plugin "cache" enabled=false ttl=300 |
| 323 | }` |
| 324 | doc, err := Parsescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Parse().(input) |
| 325 | if err != nil { |
| 326 | t.Fatalscip-go gomod github.com/golang/go/src go1.25 testing/common#Fatal().(err) |
| 327 | } |
| 328 | assertNodeCountscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertNodeCount().(t, doc, 5) |
| 329 | assertNodeNamescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertNodeName().(t, doc.Nodesscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Document#Nodes.[0], "name") |
| 330 | assertNodeNamescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertNodeName().(t, doc.Nodesscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Document#Nodes.[1], "version") |
| 331 | assertNodeNamescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertNodeName().(t, doc.Nodesscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Document#Nodes.[2], "debug") |
| 332 | assertNodeNamescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertNodeName().(t, doc.Nodesscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Document#Nodes.[3], "server") |
| 333 | assertNodeNamescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertNodeName().(t, doc.Nodesscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Document#Nodes.[4], "plugins") |
| 334 | |
| 335 | // server children |
| 336 | server := doc.Nodesscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Document#Nodes.[3] |
| 337 | assertChildCountscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertChildCount().(t, server, 3) |
| 338 | assertNodeNamescip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertNodeName().(t, server.Childrenscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Node#Children.[0], "host") |
| 339 | assertArgStringscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertArgString().(t, server.Childrenscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Node#Children.[0], 0, "localhost") |
| 340 | assertArgIntscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertArgInt().(t, server.Childrenscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Node#Children.[1], 0, 8080) |
| 341 | assertArgBoolscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertArgBool().(t, server.Childrenscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Node#Children.[2], 0, false) |
| 342 | |
| 343 | // plugins children |
| 344 | plugins := doc.Nodesscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Document#Nodes.[4] |
| 345 | assertChildCountscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertChildCount().(t, plugins, 2) |
| 346 | assertArgStringscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertArgString().(t, plugins.Childrenscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Node#Children.[0], 0, "auth") |
| 347 | assertPropBoolscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/assertPropBool().(t, plugins.Childrenscip-go gomod github.com/tomwright/dasel/v3 . `github.com/tomwright/dasel/v3/parsing/kdl/internal`/Node#Children.[0], "enabled", true) |
| 348 | } |