func TestGetwdDeep(t *testing.T) { … } func TestGetwdDeepWithPWDSet(t *testing.T) { … } // testGetwdDeep checks that os.Getwd is able to return paths // longer than syscall.PathMax (with or without PWD set). func testGetwdDeep(t *testing.T, setPWD bool) { … }