Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestRecorder (0.09 sec)

  1. staging/src/k8s.io/apimachinery/pkg/watch/filter_test.go

    		if !ok {
    			break
    		}
    		got = append(got, string(event.Object.(testType)))
    	}
    
    	if e, a := []string{"foo"}, got; !reflect.DeepEqual(e, a) {
    		t.Errorf("got %v, wanted %v", e, a)
    	}
    }
    
    func TestRecorder(t *testing.T) {
    	events := []Event{
    		{Type: Added, Object: testType("foo")},
    		{Type: Added, Object: testType("bar")},
    		{Type: Added, Object: testType("baz")},
    		{Type: Added, Object: testType("qux")},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 16 11:56:41 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  2. src/net/http/httptest/recorder_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package httptest
    
    import (
    	"fmt"
    	"io"
    	"net/http"
    	"testing"
    )
    
    func TestRecorder(t *testing.T) {
    	type checkFunc func(*ResponseRecorder) error
    	check := func(fns ...checkFunc) []checkFunc { return fns }
    
    	hasStatus := func(wantCode int) checkFunc {
    		return func(rec *ResponseRecorder) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 23:17:38 UTC 2022
    - 9.7K bytes
    - Viewed (0)
Back to top