(t *testing.T)
| 12 | ) |
| 13 | |
| 14 | func TestService(t *testing.T) { |
| 15 | t.Parallel() |
| 16 | blobcachetests.ServiceAPI(t, func(t testing.TB) blobcache.Service { |
| 17 | srv := Server{ |
| 18 | Service: bclocal.NewTestService(t), |
| 19 | } |
| 20 | lis := testutil.Listen(t) |
| 21 | go func() { |
| 22 | if err := http.Serve(lis, &srv); err != nil { |
| 23 | t.Log(err) |
| 24 | } |
| 25 | }() |
| 26 | return NewClient(nil, fmt.Sprintf("http://%s", lis.Addr().String())) |
| 27 | }) |
| 28 | } |
nothing calls this directly
no test coverage detected