MCPcopy Index your code
hub / github.com/cortexlabs/cortex / TestNestedList

Function TestNestedList

pkg/lib/configreader/reader_test.go:187–302  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

185}
186
187func TestNestedList(t *testing.T) {
188 structValidation := &StructValidation{
189 StructFieldValidations: []*StructFieldValidation{
190 {
191 // Key: "key0",
192 StructField: "Key0",
193 Float64Validation: &Float64Validation{},
194 },
195 {
196 // Key: "key1",
197 StructField: "Key1",
198 StructValidation: &StructValidation{
199 StructFieldValidations: []*StructFieldValidation{
200 {
201 // Key: "key11",
202 StructField: "Key11",
203 StructListValidation: &StructListValidation{
204 StructValidation: &StructValidation{
205 StructFieldValidations: []*StructFieldValidation{
206 {
207 // Key: "keyA",
208 StructField: "KeyA",
209 StringValidation: &StringValidation{},
210 },
211 {
212 // Key: "keyB",
213 StructField: "KeyB",
214 IntValidation: &IntValidation{},
215 },
216 {
217 // Key: "keyC",
218 StructField: "KeyC",
219 Float64ListValidation: &Float64ListValidation{},
220 },
221 {
222 // Key: "keyD",
223 StructField: "KeyD",
224 StructValidation: &StructValidation{
225 StructFieldValidations: []*StructFieldValidation{
226 {
227 // Key: "keyX",
228 StructField: "KeyX",
229 StringValidation: &StringValidation{},
230 },
231 {
232 // Key: "keyY",
233 StructField: "KeyY",
234 StringValidation: &StringValidation{},
235 },
236 },
237 },
238 },
239 },
240 },
241 },
242 },
243 },
244 },

Callers

nothing calls this directly

Calls 2

MustReadYAMLStrFunction · 0.85
testConfigFunction · 0.85

Tested by

no test coverage detected