MCPcopy
hub / github.com/TomWright/dasel / TestValue_Set_Nested

Function TestValue_Set_Nested

model/value_test.go:458–465  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

456}
457
458func TestValue_Set_Nested(t *testing.T) {
459 // Test setting a value via a nested dasel value (exercises the isDaselValue branch in Set)
460 inner := model.NewStringValue("original")
461 outer := model.NewNestedValue(inner)
462 if err := outer.Set(model.NewStringValue("updated")); err != nil {
463 t.Fatal(err)
464 }
465}
466
467func TestValue_Kind(t *testing.T) {
468 // Exercise the Kind method

Callers

nothing calls this directly

Calls 3

NewStringValueFunction · 0.92
NewNestedValueFunction · 0.92
SetMethod · 0.45

Tested by

no test coverage detected