Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TestCacheableObject (0.31 sec)

  1. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/response_test.go

    }
    
    func (e *mockEncoder) Encode(obj runtime.Object, _ io.Writer) error {
    	e.obj = obj
    	return nil
    }
    
    func (e *mockEncoder) Identifier() runtime.Identifier {
    	return runtime.Identifier("")
    }
    
    func TestCacheableObject(t *testing.T) {
    	pomGVK := metav1.SchemeGroupVersion.WithKind("PartialObjectMetadata")
    	tableGVK := metav1.SchemeGroupVersion.WithKind("Table")
    
    	status := &metav1.Status{Status: "status"}
    	pod := &examplev1.Pod{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 18 09:07:03 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/protobuf/protobuf_test.go

    	testapigroupv1 "k8s.io/apimachinery/pkg/apis/testapigroup/v1"
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/apimachinery/pkg/runtime/schema"
    	runtimetesting "k8s.io/apimachinery/pkg/runtime/testing"
    )
    
    func TestCacheableObject(t *testing.T) {
    	gvk := schema.GroupVersionKind{Group: "group", Version: "version", Kind: "MockCacheableObject"}
    	creater := &mockCreater{obj: &runtimetesting.MockCacheableObject{}}
    	typer := &mockTyper{gvk: &gvk}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 27 03:17:50 UTC 2022
    - 5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/json/json_test.go

    		if !reflect.DeepEqual(test.expectedObject, obj) {
    			logTestCase(t, test)
    			t.Errorf("%d: unexpected object:\n%s", i, diff.ObjectGoPrintSideBySide(test.expectedObject, obj))
    		}
    	}
    }
    
    func TestCacheableObject(t *testing.T) {
    	gvk := schema.GroupVersionKind{Group: "group", Version: "version", Kind: "MockCacheableObject"}
    	creater := &mockCreater{obj: &runtimetesting.MockCacheableObject{}}
    	typer := &mockTyper{gvk: &gvk}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 04 15:55:02 UTC 2024
    - 40K bytes
    - Viewed (0)
Back to top