MCPcopy
hub / github.com/nektos/act / TestHandler_BindAddress

Function TestHandler_BindAddress

pkg/artifactcache/handler_test.go:753–761  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

751}
752
753func 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}

Callers

nothing calls this directly

Calls 3

StartHandlerFunction · 0.85
CloseMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…