MCPcopy
hub / github.com/cli/cli / TestAbsoluteEmptyPathStringPanic

Function TestAbsoluteEmptyPathStringPanic

internal/safepaths/absolute_test.go:23–30  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

21}
22
23func TestAbsoluteEmptyPathStringPanic(t *testing.T) {
24 t.Parallel()
25
26 absolutePath := safepaths.Absolute{}
27 require.Panics(t, func() {
28 _ = absolutePath.String()
29 })
30}
31
32func TestJoin(t *testing.T) {
33 t.Parallel()

Callers

nothing calls this directly

Calls 1

StringMethod · 0.95

Tested by

no test coverage detected