Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TestHelpers (0.17 sec)

  1. src/cmd/cgo/internal/test/cgo_test.go

    func TestFpVar(t *testing.T)                 { testFpVar(t) }
    func TestGCC68255(t *testing.T)              { testGCC68255(t) }
    func TestHandle(t *testing.T)                { testHandle(t) }
    func TestHelpers(t *testing.T)               { testHelpers(t) }
    func TestLibgcc(t *testing.T)                { testLibgcc(t) }
    func TestMultipleAssign(t *testing.T)        { testMultipleAssign(t) }
    func TestNaming(t *testing.T)                { testNaming(t) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 21:53:11 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  2. pkg/kubelet/kubeletconfig/util/files/files_test.go

    	errs := c.expect(nil, fs, dir)
    	for _, err := range errs {
    		utiltest.ExpectError(t, err, c.err)
    	}
    }
    
    // simple test of the above helper functions
    func TestHelpers(t *testing.T) {
    	// omitting the test.fn means test.err is compared to errors from test.expect
    	cases := []test{
    		{
    			desc:    "regular file",
    			writes:  []file{{name: "foo", data: "bar"}},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Dec 07 11:36:13 UTC 2022
    - 11.7K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/test/test.go

    	{"GoString", C.GoString(C.greeting), greeting},
    	{"GoStringN", C.GoStringN(C.greeting, 5), greeting[:5]},
    	{"GoBytes", C.GoBytes(unsafe.Pointer(C.greeting), 5), []byte(greeting[:5])},
    }
    
    func testHelpers(t *testing.T) {
    	for _, pair := range testPairs {
    		if !reflect.DeepEqual(pair.Got, pair.Want) {
    			t.Errorf("%s: got %#v, want %#v", pair.Name, pair.Got, pair.Want)
    		}
    	}
    }
    
    // basic test cases
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 48.5K bytes
    - Viewed (0)
Back to top