- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 35 for testfunc5 (0.13 sec)
-
platforms/documentation/docs/src/snippets/native-binaries/cunit/groovy/libs/cunit/2.1-2/include/CUnit/TestDB.h
CU_pTest CU_add_test(CU_pSuite pSuite, const char* strName, CU_TestFunc pTestFunc); /**< * This function creates a new test having the specified name * and function, and adds it to the specified suite. The new test * is active and able to be executed during a test run. At present, * there is no mechanism for creating a test case independent of a * suite. Neither pSuite, strName, nor pTestFunc may be NULL. *
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 40.4K bytes - Viewed (0) -
src/internal/abi/abi_test.go
// license that can be found in the LICENSE file. package abi_test import ( "internal/abi" "internal/testenv" "path/filepath" "strings" "testing" ) func TestFuncPC(t *testing.T) { // Test that FuncPC* can get correct function PC. pcFromAsm := abi.FuncPCTestFnAddr // Test FuncPC for locally defined function pcFromGo := abi.FuncPCTest() if pcFromGo != pcFromAsm {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 29 18:31:05 UTC 2023 - 2.4K bytes - Viewed (0) -
pkg/controller/daemon/util/daemonset_util_test.go
featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, fg, f) t.Run(fmt.Sprintf("%v (%t)", fg, f), tf) }() } } } func TestGetTargetNodeName(t *testing.T) { testFun := func(t *testing.T) { tests := []struct { pod *v1.Pod nodeName string expectedErr bool }{ { pod: &v1.Pod{ ObjectMeta: metav1.ObjectMeta{ Name: "pod1",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 14.5K bytes - Viewed (0) -
src/text/template/multi_test.go
{"variable declared by template", `{{template "nested" $x:=.SI}},{{index $x 1}}`, "[3 4 5],4", tVal, true}, // User-defined function: test argument evaluator. {"testFunc literal", `{{oneArg "joe"}}`, "oneArg=joe", tVal, true}, {"testFunc .", `{{oneArg .}}`, "oneArg=joe", "joe", true}, } // These strings are also in testdata/*. const multiText1 = ` {{define "x"}}TEXT{{end}} {{define "dotV"}}{{.V}}{{end}}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 08 10:48:29 UTC 2022 - 11.7K bytes - Viewed (0) -
src/math/big/int_test.go
SubZZ := func(z, x, y *Int) *Int { return z.Sub(x, y) } for _, a := range sumZZ { arg := a testFunZZ(t, "AddZZ", AddZZ, arg) arg = argZZ{a.z, a.y, a.x} testFunZZ(t, "AddZZ symmetric", AddZZ, arg) arg = argZZ{a.x, a.z, a.y} testFunZZ(t, "SubZZ", SubZZ, arg) arg = argZZ{a.y, a.z, a.x} testFunZZ(t, "SubZZ symmetric", SubZZ, arg) } } func TestProdZZ(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 58.5K bytes - Viewed (0) -
src/flag/flag_test.go
Uint64("test_uint64", 0, "uint64 value") String("test_string", "0", "string value") Float64("test_float64", 0, "float64 value") Duration("test_duration", 0, "time.Duration value") Func("test_func", "func value", func(string) error { return nil }) BoolFunc("test_boolfunc", "func", func(string) error { return nil }) m := make(map[string]*Flag) desired := "0" visitor := func(f *Flag) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 18:38:24 UTC 2024 - 22K bytes - Viewed (0) -
src/cmd/internal/obj/ppc64/asm_test.go
// // VR and FPR disjointly overlap VSR, interpreting as VSR registers should produce the correctly overlapped VSR. // REG_FPx & 63 == x // REG_Vx & 63 == x + 32 func TestRegValueAlignment(t *testing.T) { tstFunc := func(rstart, rend, msk, rout int) { for i := rstart; i <= rend; i++ { if i&msk != rout { t.Errorf("%v is not aligned to 0x%X (expected %d, got %d)\n", rconv(i), msk, rout, rstart&msk) } rout++ }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 09 22:14:57 UTC 2024 - 17.3K bytes - Viewed (0) -
pkg/kubelet/cm/devicemanager/manager_test.go
} testCases := []struct { description string count int devices []pluginapi.Device testfunc func(manager *wrappedManagerImpl) }{ { description: "GetTopologyHints data race when update device", count: 10, devices: devs, testfunc: func(manager *wrappedManagerImpl) { manager.GetTopologyHints(testPod, &testPod.Spec.Containers[0]) }, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 65K bytes - Viewed (0) -
src/expvar/expvar_test.go
i := int(atomic.AddInt32(&n, 1)-1) % len(procKeys) keys := procKeys[i] for pb.Next() { for _, k := range keys { m.Add(k, 1) } } }) } func TestFunc(t *testing.T) { RemoveAll() var x any = []string{"a", "b"} f := Func(func() any { return x }) if s, exp := f.String(), `["a","b"]`; s != exp { t.Errorf(`f.String() = %q, want %q`, s, exp) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:46:19 UTC 2024 - 13.4K bytes - Viewed (0) -
src/syscall/js/js_test.go
t.Errorf("got %v, want %v", got, 42) } } func TestZeroValue(t *testing.T) { var v js.Value if !v.IsUndefined() { t.Error("zero js.Value is not js.Undefined()") } } func TestFuncOf(t *testing.T) { c := make(chan struct{}) cb := js.FuncOf(func(this js.Value, args []js.Value) any { if got := args[0].Int(); got != 42 { t.Errorf("got %#v, want %#v", got, 42) } c <- struct{}{}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 19 14:35:26 UTC 2024 - 17.7K bytes - Viewed (0)