func TestLoadBadPath(t *testing.T) {

	// mock a bad cheatpath
	cheatpaths := []cheatpath.Cheatpath{
		{
			Name:     "badpath",
			Path:     "/cheat/test/path/does/not/exist",
			ReadOnly: true,
		},
	}

	// attempt to load the cheatpath
	if _, err := Load(cheatpaths); err == nil {
		t.Errorf("failed to reject invalid cheatpath")
	}
}
// TestLoadBadPath asserts that an error is returned if a cheatpath is invalid
TestLoadBadPath asserts that an error is returned if a cheatpath is invalid
// TestLoadBadPath asserts that an error is returned if a cheatpath is invalid
func TestLoadBadPath(t *testing.T) {
	cheatpaths := []cheatpath.Cheatpath{
		{
			Name:     "badpath",
			Path:     "/cheat/test/path/does/not/exist",
			ReadOnly: true,
		},
	}
	if _, err := Load(cheatpaths); err == nil {
		t.Errorf("failed to reject invalid cheatpath")
	}
}
func TestLoadBadPath ( t * testing . T ) { cheatpaths := [ ] cheatpath . Cheatpath { { Name : " " , Path : " " , ReadOnly : true , } , } if _ , err := Load ( cheatpaths ) ; err == nil { t . Errorf ( " " ) } }
TestLoadBadPath asserts that an error is returned if a cheatpath is invalid
TestLoadBadPath asserts that an error is returned if a cheatpath is invalid
// mock a bad cheatpath // attempt to load the cheatpath