func TestFilterFailure(t *testing.T) {

	// init cheatpaths
	paths := []Cheatpath{
		Cheatpath{Name: "foo"},
		Cheatpath{Name: "bar"},
		Cheatpath{Name: "baz"},
	}

	// filter the paths
	paths, err := Filter(paths, "qux")
	if err == nil {
		t.Errorf("failed to return an error on non-existent cheatpath")
	}
}
// TestFilterFailure asserts that an error is returned when a non-existent
// cheatpath is requested
TestFilterFailure asserts that an error is returned when a non-existent
cheatpath is requested
// TestFilterFailure asserts that an error is returned when a non - existent // cheatpath is requested
func TestFilterFailure(t *testing.T) {
	paths := []Cheatpath{
		Cheatpath{Name: "foo"},
		Cheatpath{Name: "bar"},
		Cheatpath{Name: "baz"},
	}
	paths, err := Filter(paths, "qux")
	if err == nil {
		t.Errorf("failed to return an error on non-existent cheatpath")
	}
}
func TestFilterFailure ( t * testing . T ) { paths := [ ] Cheatpath { Cheatpath { Name : " " } , Cheatpath { Name : " " } , Cheatpath { Name : " " } , } paths , err := Filter ( paths , " " ) if err == nil { t . Errorf ( " " ) } }
TestFilterFailure asserts that an error is returned when a non-existent
cheatpath is requested
TestFilterFailure asserts that an error is returned when a non - existent cheatpath is requested
// init cheatpaths // filter the paths