Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 76 of 76 for testfunc (1.33 sec)

  1. src/encoding/pem/pem_test.go

    			continue
    		}
    
    		if got := buf.String(); got != test.out {
    			t.Errorf("#%d: (byte by byte) got:%s want:%s", i, got, test.out)
    		}
    	}
    }
    
    func TestFuzz(t *testing.T) {
    	// PEM is a text-based format. Assume header fields with leading/trailing spaces
    	// or embedded newlines will not round trip correctly and don't need to be tested.
    	isBad := func(s string) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 29 22:56:00 UTC 2022
    - 23.5K bytes
    - Viewed (0)
  2. 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)
  3. pkg/controller/volume/persistentvolume/provision_test.go

    }
    
    // Test multiple calls to syncClaim/syncVolume and periodic sync of all
    // volume/claims. The test follows this pattern:
    //  0. Load the controller with initial data.
    //  1. Call controllerTest.testCall() once as in TestSync()
    //  2. For all volumes/claims changed by previous syncVolume/syncClaim calls,
    //     call appropriate syncVolume/syncClaim (simulating "volume/claim changed"
    //     events). Go to 2. if these calls change anything.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 35.3K 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)
  6. pkg/scheduler/internal/queue/scheduling_queue_test.go

    		t.Errorf("Expected medPriorityPodInfo and unschedulablePodInfo to be still present in nomindatePods: %v", q.nominator.nominatedPods["node1"])
    	}
    }
    
    func newDefaultQueueSort() framework.LessFunc {
    	sort := &queuesort.PrioritySort{}
    	return sort.Less
    }
    
    func TestPriorityQueue_AddWithReversePriorityLessFunc(t *testing.T) {
    	objs := []runtime.Object{medPriorityPodInfo.Pod, highPriorityPodInfo.Pod}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 146.9K bytes
    - Viewed (0)
Back to top