(t *testing.T)
| 30 | ) |
| 31 | |
| 32 | func maybeSkipBrowserTest(t *testing.T) { |
| 33 | // Limit to just Linux for now since this is expensive and the |
| 34 | // browser interactions should be platform agnostic. If we ever |
| 35 | // see a benefit from wider testing, we can relax this. |
| 36 | if runtime.GOOS != "linux" || runtime.GOARCH != "amd64" { |
| 37 | t.Skip("This test only works on x86-64 Linux") |
| 38 | } |
| 39 | |
| 40 | // Check that browser is available. |
| 41 | if _, err := exec.LookPath("google-chrome"); err == nil { |
| 42 | return |
| 43 | } |
| 44 | if _, err := exec.LookPath("chrome"); err == nil { |
| 45 | return |
| 46 | } |
| 47 | t.Skip("chrome not available") |
| 48 | } |
| 49 | |
| 50 | func TestTopTable(t *testing.T) { |
| 51 | maybeSkipBrowserTest(t) |
no outgoing calls
no test coverage detected
searching dependent graphs…