(t *testing.T)
| 112 | } |
| 113 | |
| 114 | func TestDecodeSimpleJSONObject(t *testing.T) { |
| 115 | in := `{"foo": "bar", "baz": 2}` |
| 116 | expected := sops.TreeBranch{ |
| 117 | sops.TreeItem{ |
| 118 | Key: "foo", |
| 119 | Value: "bar", |
| 120 | }, |
| 121 | sops.TreeItem{ |
| 122 | Key: "baz", |
| 123 | Value: 2, |
| 124 | }, |
| 125 | } |
| 126 | branch, err := Store{}.treeBranchFromJSON([]byte(in)) |
| 127 | assert.Nil(t, err) |
| 128 | assert.Equal(t, expected, branch) |
| 129 | } |
| 130 | |
| 131 | func TestLargeIntegerRoundtrip(t *testing.T) { |
| 132 | // Large integers (e.g. snowflake IDs, account numbers) must not be |
nothing calls this directly
no test coverage detected