Verifies: SYS-REQ-037 [example] MCDC SYS-REQ-037: raw_float_token_is_well_formed=F, returns_parsefloat_error=T => TRUE Verifies: SYS-REQ-013 [example] STK-REQ-007:AC-2:acceptance MCDC SYS-REQ-013: raw_float_token_is_well_formed=F, returns_parsefloat_value=F => TRUE MCDC SYS-REQ-013: raw_float_token_
(t *testing.T)
| 2240 | // MCDC SYS-REQ-013: raw_float_token_is_well_formed=T, returns_parsefloat_value=F => FALSE |
| 2241 | // MCDC SYS-REQ-013: raw_float_token_is_well_formed=T, returns_parsefloat_value=T => TRUE |
| 2242 | func TestParseFloat(t *testing.T) { |
| 2243 | runParseTests(t, "ParseFloat()", parseFloatTest, |
| 2244 | func(test ParseTest) (value interface{}, err error) { |
| 2245 | return ParseFloat([]byte(test.in)) |
| 2246 | }, |
| 2247 | func(test ParseTest, obtained interface{}) (bool, interface{}) { |
| 2248 | expected := test.out.(float64) |
| 2249 | return obtained.(float64) == expected, expected |
| 2250 | }, |
| 2251 | ) |
| 2252 | } |
| 2253 | |
| 2254 | // Verifies: SYS-REQ-013 [fuzz] |
| 2255 | // MCDC SYS-REQ-013: N/A |
nothing calls this directly
no test coverage detected