Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for testfunc (0.16 sec)

  1. 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)
  2. src/cmd/go/internal/test/test.go

    'Go test' recompiles each package along with any files with names matching
    the file pattern "*_test.go".
    These additional files can contain test functions, benchmark functions, fuzz
    tests and example functions. See 'go help testfunc' for more.
    Each listed package causes the execution of a separate test binary.
    Files whose names begin with "_" (including "_test.go") or "." are ignored.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  3. pkg/controller/volume/persistentvolume/binder_test.go

    //  1. Fill in the controller with initial data
    //  2. Call the tested function (syncClaim/syncVolume) via
    //     controllerTest.testCall *once*.
    //  3. Compare resulting volumes and claims with expected volumes and claims.
    func TestSync(t *testing.T) {
    	labels := map[string]string{
    		"foo": "true",
    		"bar": "false",
    	}
    
    	tests := []controllerTest{
    		// [Unit test set 1] User did not care which PV they get.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 00:37:30 UTC 2023
    - 65.8K bytes
    - Viewed (0)
  4. pkg/scheduler/internal/queue/scheduling_queue.go

    	Close()
    	// Run starts the goroutines managing the queue.
    	Run(logger klog.Logger)
    }
    
    // NewSchedulingQueue initializes a priority queue as a new scheduling queue.
    func NewSchedulingQueue(
    	lessFn framework.LessFunc,
    	informerFactory informers.SharedInformerFactory,
    	opts ...Option) SchedulingQueue {
    	return NewPriorityQueue(lessFn, informerFactory, opts...)
    }
    
    // NominatedNodeName returns nominated node name of a Pod.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 61.4K bytes
    - Viewed (0)
  5. tests/query_test.go

    	"database/sql/driver"
    	"fmt"
    	"reflect"
    	"regexp"
    	"sort"
    	"strconv"
    	"strings"
    	"testing"
    	"time"
    
    	"gorm.io/gorm"
    	"gorm.io/gorm/clause"
    	. "gorm.io/gorm/utils/tests"
    )
    
    func TestFind(t *testing.T) {
    	users := []User{
    		*GetUser("find", Config{}),
    		*GetUser("find", Config{}),
    		*GetUser("find", Config{}),
    	}
    
    	if err := DB.Create(&users).Error; err != nil {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed May 08 04:07:58 UTC 2024
    - 49.8K bytes
    - Viewed (0)
Back to top