kubernetes/staging/src/k8s.io/cli-runtime/pkg/resource/builder_test.go

var corev1GV

var corev1Codec

func stringBody(body string) io.ReadCloser {}

func watchBody(events ...watch.Event) string {}

func fakeClient() FakeClientFunc {}

func fakeClientWith(testName string, t *testing.T, data map[string]string) FakeClientFunc {}

func testData() (*v1.PodList, *v1.ServiceList) {}

func streamTestData() (io.Reader, *v1.PodList, *v1.ServiceList) {}

func subresourceTestData(name string) *v1.Pod {}

func JSONToYAMLOrDie(in []byte) []byte {}

func streamYAMLTestData() (io.Reader, *v1.PodList, *v1.ServiceList) {}

func streamTestObject(obj runtime.Object) io.Reader {}

type testVisitor

func (v *testVisitor) Handle(info *Info, err error) error {}

func (v *testVisitor) Objects() []runtime.Object {}

var aPod

var aPodBadAnnotations

var aRC

func newDefaultBuilder() *Builder {}

func newDefaultBuilderWith(fakeClientFn FakeClientFunc) *Builder {}

func newUnstructuredDefaultBuilder() *Builder {}

func newUnstructuredDefaultBuilderWith(fakeClientFn FakeClientFunc) *Builder {}

type errorRestMapper

func (l *errorRestMapper) RESTMapping(gk schema.GroupKind, versions ...string) (*meta.RESTMapping, error) {}

func (l *errorRestMapper) Reset() {}

func newDefaultBuilderWithMapperError(fakeClientFn FakeClientFunc, err error) *Builder {}

func TestPathBuilderAndVersionedObjectNotDefaulted(t *testing.T) {}

func TestNodeBuilder(t *testing.T) {}

func createTestDir(t *testing.T, path string) {}

func writeTestFile(t *testing.T, path string, contents string) {}

func TestFilenameOptionsValidate(t *testing.T) {}

func TestPathBuilderWithMultiple(t *testing.T) {}

func TestPathBuilderWithMultipleInvalid(t *testing.T) {}

func TestDirectoryBuilder(t *testing.T) {}

func TestFilePatternBuilderWhenFileLiteralExists(t *testing.T) {}

func TestFilePatternBuilder(t *testing.T) {}

func TestErrorFilePatternBuilder(t *testing.T) {}

func setupKustomizeDirectory() (string, error) {}

func TestKustomizeDirectoryBuilder(t *testing.T) {}

func TestNamespaceOverride(t *testing.T) {}

func TestURLBuilder(t *testing.T) {}

func TestURLBuilderRequireNamespace(t *testing.T) {}

func TestReplaceAliases(t *testing.T) {}

func TestResourceByName(t *testing.T) {}

func TestSubresourceByName(t *testing.T) {}

func TestRestMappingErrors(t *testing.T) {}

func TestMultipleResourceByTheSameName(t *testing.T) {}

func TestRequestModifier(t *testing.T) {}

func TestResourceNames(t *testing.T) {}

func TestResourceNamesWithoutResource(t *testing.T) {}

func TestResourceByNameWithoutRequireObject(t *testing.T) {}

func TestResourceByNameAndEmptySelector(t *testing.T) {}

func TestLabelSelector(t *testing.T) {}

func TestLabelSelectorRequiresKnownTypes(t *testing.T) {}

func TestFieldSelector(t *testing.T) {}

func TestFieldSelectorRequiresKnownTypes(t *testing.T) {}

func TestNoSelectorUnknowResourceType(t *testing.T) {}

func TestSingleResourceType(t *testing.T) {}

func TestResourceTuple(t *testing.T) {}

func TestStream(t *testing.T) {}

func TestYAMLStream(t *testing.T) {}

func TestMultipleObject(t *testing.T) {}

func TestContinueOnErrorVisitor(t *testing.T) {}

func TestSingleItemImpliedObject(t *testing.T) {}

func TestSingleItemImpliedObjectNoExtension(t *testing.T) {}

func TestSingleItemImpliedRootScopedObject(t *testing.T) {}

func TestListObject(t *testing.T) {}

func TestListObjectWithDifferentVersions(t *testing.T) {}

func TestListObjectSubresource(t *testing.T) {}

func TestWatch(t *testing.T) {}

func TestWatchMultipleError(t *testing.T) {}

func TestLatest(t *testing.T) {}

func TestReceiveMultipleErrors(t *testing.T) {}

func TestHasNames(t *testing.T) {}

func TestUnstructured(t *testing.T) {}

func TestStdinMultiUseError(t *testing.T) {}