Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 85 for testCases (0.14 sec)

  1. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/process/instrument/AbstractProcessInstrumentationInDynamicGroovyIntegrationTest.groovy

        @Shared
        def testCases = testCasesWithIndyModes()
    
        /**
         * Produces a list of test cases. Each test case is itself a list of the following structure:
         * {@code [varInitializer, processCreator, expectedPwdSuffix, expectedEnvVar]}.
         * @return the list of test cases
         */
        abstract def testCases()
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  2. cmd/bucket-handlers_test.go

    		},
    	}
    
    	for i, testCase := range testCases {
    		var req *http.Request
    		var actualContent []byte
    
    		// Generate a signed or anonymous request based on the testCase
    		if testCase.accessKey != "" {
    			req, err = newTestSignedRequestV4(http.MethodPost, getDeleteMultipleObjectsURL("", testCase.bucket),
    				int64(len(testCase.objects)), bytes.NewReader(testCase.objects), testCase.accessKey, testCase.secretKey, nil)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 39.8K bytes
    - Viewed (0)
  3. internal/http/listener_test.go

    	}
    
    	for testIdx, testCase := range testCases {
    		listener, listenErrs := newHTTPListener(context.Background(),
    			testCase.serverAddrs,
    			TCPOptions{},
    		)
    		for i, expectedListenErr := range testCase.expectedListenErrs {
    			if !expectedListenErr {
    				if listenErrs[i] != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 17:41:02 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  4. cmd/bucket-lifecycle-handlers_test.go

    	},
    ) {
    	for i, testCase := range testCases {
    		// initialize httptest Recorder, this records any mutations to response writer inside the handler.
    		rec := httptest.NewRecorder()
    		// construct HTTP request
    		req, err := newTestSignedRequestV4(testCase.method, getBucketLifecycleURL("", testCase.bucketName),
    			int64(len(testCase.body)), bytes.NewReader(testCase.body), testCase.accessKey, testCase.secretKey, nil)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  5. security/pkg/pki/util/crypto_test.go

    	certChainValid             = loadPEMFile("../testdata/cert-chain.pem")
    	certChainValidTrailingLine = loadPEMFile("../testdata/cert-chain-trailing-line.pem")
    )
    
    func TestParsePemEncodedCertificate(t *testing.T) {
    	testCases := map[string]struct {
    		errMsg        string
    		pem           string
    		publicKeyAlgo x509.PublicKeyAlgorithm
    	}{
    		"Invalid PEM string": {
    			errMsg: "invalid PEM encoded certificate",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 04 13:00:07 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  6. pkg/controller/job/backoff_utils_test.go

    	"k8s.io/utils/ptr"
    )
    
    func TestNewBackoffRecord(t *testing.T) {
    	emptyStoreInitializer := func(*backoffStore) {}
    	defaultTestTime := metav1.NewTime(time.Date(2009, time.November, 10, 23, 0, 0, 0, time.UTC))
    	testCases := map[string]struct {
    		storeInitializer  func(*backoffStore)
    		uncounted         uncountedTerminatedPods
    		newSucceededPods  []metav1.Time
    		newFailedPods     []metav1.Time
    		wantBackoffRecord backoffRecord
    	}{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 07:46:41 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  7. pkg/apis/core/v1/helper/helpers_test.go

    package helper
    
    import (
    	"fmt"
    	"reflect"
    	"testing"
    
    	v1 "k8s.io/api/core/v1"
    	"k8s.io/apimachinery/pkg/api/resource"
    	"k8s.io/apimachinery/pkg/labels"
    )
    
    func TestIsNativeResource(t *testing.T) {
    	testCases := []struct {
    		resourceName v1.ResourceName
    		expectVal    bool
    	}{
    		{
    			resourceName: "pod.alpha.kubernetes.io/opaque-int-resource-foo",
    			expectVal:    true,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 23:03:54 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  8. security/pkg/util/jwtutil_test.go

    	base64UrlEncodedPaddingStrippedPart = "eyJpc3MiOiJodHRwczovL2V4YW1wbGUuY29tIiwiYXVkIjoiSm9lIEFyZG_DsWV6In0"
    )
    
    func TestGetExp(t *testing.T) {
    	testCases := map[string]struct {
    		jwt         string
    		expectedExp time.Time
    		expectedErr error
    	}{
    		"jwt with expiration time": {
    			jwt:         thirdPartyJwt,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 16:07:11 UTC 2024
    - 6K bytes
    - Viewed (0)
  9. pkg/kubelet/network/dns/dns_test.go

    		select {
    		case event := <-recorder.Events:
    			return event
    		default:
    			return ""
    		}
    	}
    )
    
    func TestParseResolvConf(t *testing.T) {
    	testCases := []struct {
    		data        string
    		nameservers []string
    		searches    []string
    		options     []string
    		isErr       bool
    	}{
    		{"", []string{}, []string{}, []string{}, false},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  10. pkg/util/tail/tail_test.go

    	line := strings.Repeat("a", blockSize)
    	testBytes := []byte(line + "\n" +
    		line + "\n" +
    		line + "\n" +
    		line + "\n" +
    		line[blockSize/2:]) // incomplete line
    
    	file.Write(testBytes)
    	testCases := []struct {
    		name          string
    		max           int64
    		longerThanMax bool
    		expected      string
    	}{
    		{
    			name:          "the max is negative",
    			max:           -1,
    			longerThanMax: true,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 13:13:22 UTC 2024
    - 2.3K bytes
    - Viewed (0)
Back to top