func TestWriteableNotOK(t *testing.T) {

	// initialize some cheatpaths
	cheatpaths := []Cheatpath{
		Cheatpath{Path: "/foo", ReadOnly: true},
		Cheatpath{Path: "/bar", ReadOnly: true},
		Cheatpath{Path: "/baz", ReadOnly: true},
	}

	// get the writeable cheatpath
	_, err := Writeable(cheatpaths)

	// assert that no errors were returned
	if err == nil {
		t.Errorf("failed to return an error when no writeable paths found")
	}
}
// TestWriteableOK asserts that Writeable returns an error when no writeable
// cheatpaths exist
TestWriteableOK asserts that Writeable returns an error when no writeable
cheatpaths exist
// TestWriteableOK asserts that Writeable returns an error when no writeable // cheatpaths exist
func TestWriteableNotOK(t *testing.T) {
	cheatpaths := []Cheatpath{
		Cheatpath{Path: "/foo", ReadOnly: true},
		Cheatpath{Path: "/bar", ReadOnly: true},
		Cheatpath{Path: "/baz", ReadOnly: true},
	}
	_, err := Writeable(cheatpaths)
	if err == nil {
		t.Errorf("failed to return an error when no writeable paths found")
	}
}
func TestWriteableNotOK ( t * testing . T ) { cheatpaths := [ ] Cheatpath { Cheatpath { Path : " " , ReadOnly : true } , Cheatpath { Path : " " , ReadOnly : true } , Cheatpath { Path : " " , ReadOnly : true } , } _ , err := Writeable ( cheatpaths ) if err == nil { t . Errorf ( " " ) } }
TestWriteableOK asserts that Writeable returns an error when no writeable
cheatpaths exist
TestWriteableOK asserts that Writeable returns an error when no writeable cheatpaths exist
// initialize some cheatpaths // get the writeable cheatpath // assert that no errors were returned