Verifies: SYS-REQ-011 [example] STK-REQ-006:AC-1:acceptance MCDC SYS-REQ-011: addressed_value_is_string=F, returns_unsafe_string_view=F => TRUE MCDC SYS-REQ-011: addressed_value_is_string=T, returns_unsafe_string_view=F => FALSE MCDC SYS-REQ-011: addressed_value_is_string=T, returns_unsafe_string_vi
(t *testing.T)
| 1543 | // MCDC SYS-REQ-011: addressed_value_is_string=T, returns_unsafe_string_view=F => FALSE |
| 1544 | // MCDC SYS-REQ-011: addressed_value_is_string=T, returns_unsafe_string_view=T => TRUE |
| 1545 | func TestGetUnsafeString(t *testing.T) { |
| 1546 | runGetTests(t, "GetUnsafeString()", getUnsafeStringTests, |
| 1547 | func(test GetTest) (value interface{}, dataType ValueType, err error) { |
| 1548 | value, err = GetUnsafeString([]byte(test.json), test.path...) |
| 1549 | return value, String, err |
| 1550 | }, |
| 1551 | func(test GetTest, value interface{}) (bool, interface{}) { |
| 1552 | expected := test.data.(string) |
| 1553 | return expected == value.(string), expected |
| 1554 | }, |
| 1555 | ) |
| 1556 | } |
| 1557 | |
| 1558 | // Verifies: SYS-REQ-003 [example] |
| 1559 | // STK-REQ-003:AC-1:acceptance |
nothing calls this directly
no test coverage detected