(t testing.TB, name string)
| 365 | } |
| 366 | |
| 367 | func readGDA(t testing.TB, name string) (string, []TestCase) { |
| 368 | path := filepath.Join(testDir, name+".decTest") |
| 369 | f, err := os.Open(path) |
| 370 | if err != nil { |
| 371 | t.Fatal(err) |
| 372 | } |
| 373 | defer f.Close() |
| 374 | tcs, err := ParseDecTest(f) |
| 375 | if err != nil { |
| 376 | t.Fatal(err) |
| 377 | } |
| 378 | return path, tcs |
| 379 | } |
| 380 | |
| 381 | func (tc TestCase) Context(t testing.TB) *Context { |
| 382 | rounding := Rounder(tc.Rounding) |
no test coverage detected
searching dependent graphs…