Verifies: SYS-REQ-009 [example] MCDC SYS-REQ-009: set_creates_missing_path=F, set_path_is_provided=F, set_returns_not_found_error=F, set_returns_updated_document=F, set_target_exists=F => TRUE MCDC SYS-REQ-009: set_creates_missing_path=F, set_path_is_provided=T, set_returns_not_found_error=F, set_re
(t *testing.T)
| 12 | // MCDC SYS-REQ-009: set_creates_missing_path=F, set_path_is_provided=T, set_returns_not_found_error=F, set_returns_updated_document=T, set_target_exists=F => TRUE |
| 13 | // MCDC SYS-REQ-009: set_creates_missing_path=F, set_path_is_provided=T, set_returns_not_found_error=T, set_returns_updated_document=F, set_target_exists=F => TRUE |
| 14 | func TestSet(t *testing.T) { |
| 15 | runSetTests(t, "Set()", setTests, |
| 16 | func(test SetTest) (value interface{}, dataType ValueType, err error) { |
| 17 | value, err = Set([]byte(test.json), []byte(test.setData), test.path...) |
| 18 | return |
| 19 | }, |
| 20 | func(test SetTest, value interface{}) (bool, interface{}) { |
| 21 | expected := []byte(test.data.(string)) |
| 22 | return bytes.Equal(expected, value.([]byte)), expected |
| 23 | }, |
| 24 | ) |
| 25 | } |
| 26 | |
| 27 | // Verifies: SYS-REQ-009 [boundary] |
| 28 | // MCDC SYS-REQ-009: set_creates_missing_path=T, set_path_is_provided=T, set_returns_not_found_error=F, set_returns_updated_document=F, set_target_exists=F => TRUE |
nothing calls this directly
no test coverage detected
searching dependent graphs…