Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testFunctions (0.16 sec)

  1. src/reflect/all_test.go

    	}
    }
    
    func TestFunctionValue(t *testing.T) {
    	var x any = func() {}
    	v := ValueOf(x)
    	if fmt.Sprint(v.Interface()) != fmt.Sprint(x) {
    		t.Fatalf("TestFunction returned wrong pointer")
    	}
    	assert(t, v.Type().String(), "func()")
    }
    
    func TestGrow(t *testing.T) {
    	v := ValueOf([]int(nil))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
Back to top