func TestAbsPathEmpty(t *testing.T) { var s flagx.AbsPath err := s.Set("") if err != flagx.ErrEmptyPath { t.Fatalf("expected ErrEmptyPath, got %v", err) } }
func setAbsPath(t testing.TB, value string) string { var s flagx.AbsPath err := s.Set(value) if err != nil { t.Fatalf("AbsPath.Set failed: %v", err) } return s.String() }