Example #1
0
func TestAbsPathEmpty(t *testing.T) {
	var s flagx.AbsPath
	err := s.Set("")
	if err != flagx.ErrEmptyPath {
		t.Fatalf("expected ErrEmptyPath, got %v", err)
	}
}
Example #2
0
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()
}