(t *testing.T)
| 751 | } |
| 752 | |
| 753 | func TestHandler_BindAddress(t *testing.T) { |
| 754 | dir := filepath.Join(t.TempDir(), "artifactcache") |
| 755 | handler, err := StartHandler(dir, "", "127.0.0.1", 0, nil) |
| 756 | require.NoError(t, err) |
| 757 | defer handler.Close() |
| 758 | |
| 759 | addr := handler.listener.Addr().String() |
| 760 | assert.True(t, strings.HasPrefix(addr, "127.0.0.1:")) |
| 761 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…