Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestFromObject (0.27 sec)

  1. staging/src/k8s.io/apimachinery/pkg/api/errors/errors_test.go

    func (obj *TestType) DeepCopyObject() runtime.Object {
    	if obj == nil {
    		return nil
    	}
    	clone := *obj
    	return &clone
    }
    
    func TestFromObject(t *testing.T) {
    	table := []struct {
    		obj     runtime.Object
    		message string
    	}{
    		{&metav1.Status{Message: "foobar"}, "foobar"},
    		{&TestType{}, "unexpected object: &{}"},
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 28 07:31:28 UTC 2023
    - 19.5K bytes
    - Viewed (0)
Back to top