Debian Codegraph @

cmd/go-yaml/testdata/options.yaml

raw symbols SCIP
1 - name: Version preset V2
2 text: |
3 foo:
4 - bar
5 - baz
6 v2-yaml: |
7 foo:
8 - bar
9 - baz
10
11 - name: Version preset V3
12 text: |
13 foo:
14 - bar
15 - baz
16 v3-yaml: |
17 foo:
18 - bar
19 - baz
20
21 - name: Custom indent level 3
22 text: |
23 foo:
24 - bar
25 - baz
26 indent3-yaml: |
27 foo:
28 - bar
29 - baz
30
31 - name: Line width wrapping
32 text: |
33 text: "This is a very long line of text that should wrap at a specific width"
34 width40-yaml: |
35 text: This is a very long line of text that
36 should wrap at a specific width
37
38 - name: Compact sequence indentation
39 text: |
40 foo:
41 - bar
42 - baz
43 compact-yaml: |
44 foo:
45 - bar
46 - baz
47
48 - name: V3 with indent override
49 text: |
50 foo:
51 - bar
52 - baz
53 v3-indent2-yaml: |
54 foo:
55 - bar
56 - baz
57
58 - name: Nested structure with V2
59 text: |
60 root:
61 level1:
62 - item1
63 - item2
64 level2:
65 key: value
66 v2-yaml: |
67 root:
68 level1:
69 - item1
70 - item2
71 level2:
72 key: value
73
74 - name: Nested structure with V3
75 text: |
76 root:
77 level1:
78 - item1
79 - item2
80 level2:
81 key: value
82 v3-yaml: |
83 root:
84 level1:
85 - item1
86 - item2
87 level2:
88 key: value
89
90 - name: Multiple items default (V4)
91 text: |
92 items:
93 - one
94 - two
95 - three
96 yaml: |
97 items:
98 - one
99 - two
100 - three
101
102 - name: Multiple items V2
103 text: |
104 items:
105 - one
106 - two
107 - three
108 v2-yaml: |
109 items:
110 - one
111 - two
112 - three
113
114 - name: Multiple items V3
115 text: |
116 items:
117 - one
118 - two
119 - three
120 v3-yaml: |
121 items:
122 - one
123 - two
124 - three
125
126 - name: Canonical formatting
127 text: |
128 foo: bar
129 num: 42
130 canonical-yaml: |
131 ---
132 {
133 ? "foo"
134 : "bar",
135 ? "num"
136 : "42",
137 }
138
139 - name: Explicit markers
140 text: |
141 foo: bar
142 explicit-yaml: |
143 ---
144 foo: bar
145 ...
146
147 - name: Explicit start only
148 text: |
149 foo: bar
150 explicit-start-yaml: |
151 ---
152 foo: bar
153
154 - name: Unicode disabled
155 text: |
156 foo: bar
157 no-unicode-yaml: |
158 foo: bar
159
160 - name: Comma-separated options
161 text: |
162 foo: bar
163 canonical-explicit-yaml: |
164 ---
165 {
166 ? "foo"
167 : "bar",
168 }
169 ...
170
171 - name: Multiple option overrides
172 text: |
173 foo:
174 - bar
175 - baz
176 v2-indent4-yaml: |
177 foo:
178 - bar
179 - baz
180
181 - name: Stream option with mapping
182 text: |
183 a: b
184 stream-node: |
185 - stream:
186 encoding: UTF-8
187 - mapping:
188 - plain: a
189 - plain: b
190 - stream:
191 encoding: UTF-8
192 stream-NODE: |
193 - kind: Stream
194 encoding: UTF-8
195 - kind: Document
196 content:
197 - kind: Mapping
198 style: Plain
199 tag: '!!map'
200 content:
201 - kind: Scalar
202 style: Plain
203 tag: '!!str'
204 text: a
205 - kind: Scalar
206 style: Plain
207 tag: '!!str'
208 text: b
209 - kind: Stream
210 encoding: UTF-8
211
212 - name: Stream option with scalar
213 text: |
214 hello
215 stream-node: |
216 - stream:
217 encoding: UTF-8
218 - plain: hello
219 - stream:
220 encoding: UTF-8
221
222 - name: Stream option with sequence
223 text: |
224 - item1
225 - item2
226 stream-node: |
227 - stream:
228 encoding: UTF-8
229 - sequence:
230 - plain: item1
231 - plain: item2
232 - stream:
233 encoding: UTF-8