MCPcopy Index your code
hub / github.com/cli/cli / TestPortsUpdateVisibilitySuccess

Function TestPortsUpdateVisibilitySuccess

pkg/cmd/codespace/ports_test.go:33–49  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

31}
32
33func TestPortsUpdateVisibilitySuccess(t *testing.T) {
34 portVisibilities := []portVisibility{
35 {
36 number: 80,
37 visibility: "org",
38 },
39 {
40 number: 9999,
41 visibility: "public",
42 },
43 }
44
45 err := runUpdateVisibilityTest(t, portVisibilities, true)
46 if err != nil {
47 t.Errorf("unexpected error: %v", err)
48 }
49}
50
51func TestPortsUpdateVisibilityFailure(t *testing.T) {
52 portVisibilities := []portVisibility{

Callers

nothing calls this directly

Calls 2

runUpdateVisibilityTestFunction · 0.85
ErrorfMethod · 0.65

Tested by

no test coverage detected