Skip to content

Commit

Permalink
Improve coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ohler55 committed Mar 20, 2022
1 parent f6fecbe commit 403fc5b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jp/set_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ var (
{path: "*.a", data: &Any{X: 1}, value: 3, expect: `{"^":"Any","x":1}`},
{path: "[0,1].x", data: []int{1}, value: 3, expect: `[1]`},
{path: "[0:1].x", data: []int{1}, value: 3, expect: `[1]`},
{path: "['x','y'].a", data: &Any{X: 1}, value: 3, expect: `{"^":"Any","x":1}`},

{path: "x.a", data: map[string]interface{}{"x": func() {}}, value: 3, err: "can not follow a func() at 'x'"},
{path: "x.a", data: &Any{X: 1}, value: 3, err: "can not follow a int at 'x'"},
Expand Down

0 comments on commit 403fc5b

Please sign in to comment.