(t *testing.T)
| 13 | ) |
| 14 | |
| 15 | func TestAPI(t *testing.T) { |
| 16 | t.Parallel() |
| 17 | |
| 18 | dir := t.TempDir() |
| 19 | execPath := filepath.Join(dir, "blobcache") |
| 20 | t.Log("building blobcache command") |
| 21 | testutil.BuildGoExec(t, execPath, "../../cmd/blobcache") |
| 22 | t.Log("built blobcache command. written to ", execPath) |
| 23 | |
| 24 | blobcachetests.ServiceAPI(t, func(t testing.TB) blobcache.Service { |
| 25 | if strings.Contains(t.Name(), "Queue") || strings.Contains(t.Name(), "SubToVol") { |
| 26 | // If we ever add `blobcache queue` to the CLI then we can start running these tests. |
| 27 | t.SkipNow() |
| 28 | } |
| 29 | _, apiAddr := blobcached.BGTestDaemon(t) |
| 30 | return &blobcachecmd.Service{ |
| 31 | APIAddr: apiAddr, |
| 32 | ExecPath: execPath, |
| 33 | } |
| 34 | }) |
| 35 | } |
nothing calls this directly
no test coverage detected