NativeFile substitutes %s with an abbreviation of the host endianness.
(tb testing.TB, path string)
| 63 | |
| 64 | // NativeFile substitutes %s with an abbreviation of the host endianness. |
| 65 | func NativeFile(tb testing.TB, path string) string { |
| 66 | tb.Helper() |
| 67 | |
| 68 | if !strings.Contains(path, "%s") { |
| 69 | tb.Fatalf("File %q doesn't contain %%s", path) |
| 70 | } |
| 71 | |
| 72 | if cpu.IsBigEndian { |
| 73 | return fmt.Sprintf(path, "eb") |
| 74 | } |
| 75 | |
| 76 | return fmt.Sprintf(path, "el") |
| 77 | } |
no outgoing calls
searching dependent graphs…