func TestWriteableOK(t *testing.T) {

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

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

	// assert that no errors were returned
	if err != nil {
		t.Errorf("failed to get cheatpath: %v", err)
	}

	// assert that the path is correct
	if got.Path != "/bar" {
		t.Errorf("incorrect cheatpath returned: got: %s", got.Path)
	}
}
// TestWriteableOK asserts that Writeable returns the appropriate cheatpath
// when a writeable cheatpath exists
TestWriteableOK asserts that Writeable returns the appropriate cheatpath
when a writeable cheatpath exists
// TestWriteableOK asserts that Writeable returns the appropriate cheatpath // when a writeable cheatpath exists
func TestWriteableOK(t *testing.T) {
	cheatpaths := []Cheatpath{
		Cheatpath{Path: "/foo", ReadOnly: true},
		Cheatpath{Path: "/bar", ReadOnly: false},
		Cheatpath{Path: "/baz", ReadOnly: true},
	}
	got, err := Writeable(cheatpaths)
	if err != nil {
		t.Errorf("failed to get cheatpath: %v", err)
	}
	if got.Path != "/bar" {
		t.Errorf("incorrect cheatpath returned: got: %s", got.Path)
	}
}
func TestWriteableOK ( t * testing . T ) { cheatpaths := [ ] Cheatpath { Cheatpath { Path : " " , ReadOnly : true } , Cheatpath { Path : " " , ReadOnly : false } , Cheatpath { Path : " " , ReadOnly : true } , } got , err := Writeable ( cheatpaths ) if err != nil { t . Errorf ( " " , err ) } if got . Path != " " { t . Errorf ( " " , got . Path ) } }
TestWriteableOK asserts that Writeable returns the appropriate cheatpath
when a writeable cheatpath exists
TestWriteableOK asserts that Writeable returns the appropriate cheatpath when a writeable cheatpath exists
// initialize some cheatpaths // get the writeable cheatpath // assert that no errors were returned // assert that the path is correct