internal

package
v0.0.0-...-5ea7d2a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2024 License: MIT Imports: 6 Imported by: 0

README

internal

import "github.com/eclipse-symphony/symphony/packages/testutils/internal"

Index

func GenerateTestApiResourceList

func GenerateTestApiResourceList() []*metav1.APIResourceList

func Namespace

func Namespace(name string) *corev1.Namespace

func OutOfSyncResource

func OutOfSyncResource(name, namespace string, gvk schema.GroupVersionKind) *unstructured.Unstructured

func Pod

func Pod(name, namespace string) *corev1.Pod

func Resource

func Resource(name, namespace string, gvk schema.GroupVersionKind) *unstructured.Unstructured

func Target

func Target(name, namespace string) *unstructured.Unstructured

type MockT

type MockT struct {
    mock.Mock
}

func NewMockT
func NewMockT() *MockT

func (*MockT) Errorf
func (_m *MockT) Errorf(format string, args ...interface{})

Errorf provides a mock function with given fields: format, args

func (*MockT) Fatalf
func (_m *MockT) Fatalf(format string, args ...interface{})

func (*MockT) Helper
func (_m *MockT) Helper()

Helper provides a mock function

Generated by gomarkdoc

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateTestApiResourceList

func GenerateTestApiResourceList() []*metav1.APIResourceList

func Namespace

func Namespace(name string) *corev1.Namespace

func OutOfSyncResource

func OutOfSyncResource(name, namespace string, gvk schema.GroupVersionKind) *unstructured.Unstructured

func Pod

func Pod(name, namespace string) *corev1.Pod

func Resource

func Resource(name, namespace string, gvk schema.GroupVersionKind) *unstructured.Unstructured

func Target

func Target(name, namespace string) *unstructured.Unstructured

Types

type MockT

type MockT struct {
	mock.Mock
}

func NewMockT

func NewMockT() *MockT

func (*MockT) Errorf

func (_m *MockT) Errorf(format string, args ...interface{})

Errorf provides a mock function with given fields: format, args

func (*MockT) Fatalf

func (_m *MockT) Fatalf(format string, args ...interface{})

func (*MockT) Helper

func (_m *MockT) Helper()

Helper provides a mock function

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL