func TestValidateMissingName(t *testing.T) {

	// initialize a valid cheatpath
	cheatpath := Cheatpath{
		Path:     "/foo",
		ReadOnly: false,
		Tags:     []string{},
	}

	// assert that no errors are returned
	if err := cheatpath.Validate(); err == nil {
		t.Errorf("failed to invalidate cheatpath without name")
	}
}
// TestValidateMissingName asserts that paths that are missing a name fail to
// validate
TestValidateMissingName asserts that paths that are missing a name fail to
validate
// TestValidateMissingName asserts that paths that are missing a name fail to // validate
func TestValidateMissingName(t *testing.T) {
	cheatpath := Cheatpath{
		Path:     "/foo",
		ReadOnly: false,
		Tags:     []string{},
	}
	if err := cheatpath.Validate(); err == nil {
		t.Errorf("failed to invalidate cheatpath without name")
	}
}
func TestValidateMissingName ( t * testing . T ) { cheatpath := Cheatpath { Path : " " , ReadOnly : false , Tags : [ ] string { } , } if err := cheatpath . Validate ( ) ; err == nil { t . Errorf ( " " ) } }
TestValidateMissingName asserts that paths that are missing a name fail to
validate
TestValidateMissingName asserts that paths that are missing a name fail to validate
// initialize a valid cheatpath // assert that no errors are returned