Verifies: SYS-REQ-002 [example] STK-REQ-002:AC-1:acceptance MCDC SYS-REQ-002: addressed_value_is_string=F, raw_string_token_is_well_formed=T, returns_getstring_decoded_value=F => TRUE MCDC SYS-REQ-002: addressed_value_is_string=T, raw_string_token_is_well_formed=F, returns_getstring_decoded_value=F
(t *testing.T)
| 1525 | // MCDC SYS-REQ-002: addressed_value_is_string=T, raw_string_token_is_well_formed=T, returns_getstring_decoded_value=F => FALSE |
| 1526 | // MCDC SYS-REQ-002: addressed_value_is_string=T, raw_string_token_is_well_formed=T, returns_getstring_decoded_value=T => TRUE |
| 1527 | func TestGetString(t *testing.T) { |
| 1528 | runGetTests(t, "GetString()", getStringTests, |
| 1529 | func(test GetTest) (value interface{}, dataType ValueType, err error) { |
| 1530 | value, err = GetString([]byte(test.json), test.path...) |
| 1531 | return value, String, err |
| 1532 | }, |
| 1533 | func(test GetTest, value interface{}) (bool, interface{}) { |
| 1534 | expected := test.data.(string) |
| 1535 | return expected == value.(string), expected |
| 1536 | }, |
| 1537 | ) |
| 1538 | } |
| 1539 | |
| 1540 | // Verifies: SYS-REQ-011 [example] |
| 1541 | // STK-REQ-006:AC-1:acceptance |
nothing calls this directly
no test coverage detected