Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 188 for testcalls (0.07 sec)

  1. native-image-tests/src/main/kotlin/okhttp3/TestRegistration.kt

        val knownTestFile = File("src/main/resources/testlist.txt").absoluteFile
        knownTestFile.readLines().forEach {
          try {
            val testClass = access.findClassByName(it)
    
            if (testClass != null) {
              access.registerAsUsed(testClass)
              registerTest(access, testClass)
            }
          } catch (e: Exception) {
            // If you throw an exception here then native image building fails half way through
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. cmd/object-api-utils_test.go

    	}
    
    	for i, test := range testCases {
    		result := getCompleteMultipartMD5(test.parts)
    		if result != test.expectedResult {
    			t.Fatalf("test %d failed: expected: result=%v, got=%v", i+1, test.expectedResult, result)
    		}
    	}
    }
    
    // TestIsMinioBucketName - Tests isMinioBucketName helper function.
    func TestIsMinioMetaBucketName(t *testing.T) {
    	testCases := []struct {
    		bucket string
    		result bool
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  3. internal/event/rules_test.go

    	rulesCase3.Add(NewPattern("", "*.jpg"), TargetID{"1", "webhook"})
    
    	testCases := []struct {
    		rules    Rules
    		prefix   string
    		targetID TargetID
    	}{
    		{rulesCase1, "2010*", TargetID{"1", "webhook"}},
    		{rulesCase2, "2000*", TargetID{"2", "amqp"}},
    		{rulesCase3, "2010*", TargetID{"1", "webhook"}},
    	}
    
    	for i, testCase := range testCases {
    		result := testCase.rules.Clone()
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 8.8K bytes
    - Viewed (0)
  4. cmd/update_test.go

    	"runtime"
    	"strings"
    	"testing"
    	"time"
    )
    
    func TestMinioVersionToReleaseTime(t *testing.T) {
    	testCases := []struct {
    		version    string
    		isOfficial bool
    	}{
    		{"2017-09-29T19:16:56Z", true},
    		{"RELEASE.2017-09-29T19-16-56Z", false},
    		{"DEVELOPMENT.GOGET", false},
    	}
    	for i, testCase := range testCases {
    		_, err := minioVersionToReleaseTime(testCase.version)
    		if (err == nil) != testCase.isOfficial {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  5. internal/event/name_test.go

    	}
    
    	for i, testCase := range testCases {
    		result := testCase.name.Expand()
    
    		if !reflect.DeepEqual(result, testCase.expectedResult) {
    			t.Errorf("test %v: result: expected: %v, got: %v", i+1, testCase.expectedResult, result)
    		}
    	}
    }
    
    func TestNameString(t *testing.T) {
    	var blankName Name
    
    	testCases := []struct {
    		name           Name
    		expectedResult string
    	}{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 01 01:11:10 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  6. internal/event/config_test.go

    		{"Hello/世界", false},
    	}
    
    	for i, testCase := range testCases {
    		err := ValidateFilterRuleValue(testCase.value)
    		expectErr := (err != nil)
    
    		if expectErr != testCase.expectErr {
    			t.Fatalf("test %v: error: expected: %v, got: %v", i+1, testCase.expectErr, expectErr)
    		}
    	}
    }
    
    func TestFilterRuleUnmarshalXML(t *testing.T) {
    	testCases := []struct {
    		data           []byte
    		expectedResult *FilterRule
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Dec 05 10:16:33 UTC 2023
    - 29K bytes
    - Viewed (0)
  7. internal/auth/credentials_test.go

    			}
    		})
    	}
    }
    
    func TestIsAccessKeyValid(t *testing.T) {
    	testCases := []struct {
    		accessKey      string
    		expectedResult bool
    	}{
    		{alphaNumericTable[:accessKeyMinLen], true},
    		{alphaNumericTable[:accessKeyMinLen+1], true},
    		{alphaNumericTable[:accessKeyMinLen-1], false},
    	}
    
    	for i, testCase := range testCases {
    		result := IsAccessKeyValid(testCase.accessKey)
    		if result != testCase.expectedResult {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Mar 01 21:09:42 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  8. internal/config/bool-flag_test.go

    import (
    	"testing"
    )
    
    // Test BoolFlag.String()
    func TestBoolFlagString(t *testing.T) {
    	var bf BoolFlag
    
    	testCases := []struct {
    		flag           BoolFlag
    		expectedResult string
    	}{
    		{bf, "off"},
    		{BoolFlag(true), "on"},
    		{BoolFlag(false), "off"},
    	}
    
    	for _, testCase := range testCases {
    		str := testCase.flag.String()
    		if testCase.expectedResult != str {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 3.5K bytes
    - Viewed (0)
  9. internal/config/lambda/event/targetid_test.go

    )
    
    func TestTargetDString(t *testing.T) {
    	testCases := []struct {
    		tid            TargetID
    		expectedResult string
    	}{
    		{TargetID{}, ":"},
    		{TargetID{"1", "webhook"}, "1:webhook"},
    		{TargetID{"httpclient+2e33cdee-fbec-4bdd-917e-7d8e3c5a2531", "localhost:55638"}, "httpclient+2e33cdee-fbec-4bdd-917e-7d8e3c5a2531:localhost:55638"},
    	}
    
    	for i, testCase := range testCases {
    		result := testCase.tid.String()
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Mar 07 16:12:41 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  10. internal/event/targetid_test.go

    )
    
    func TestTargetDString(t *testing.T) {
    	testCases := []struct {
    		tid            TargetID
    		expectedResult string
    	}{
    		{TargetID{}, ":"},
    		{TargetID{"1", "webhook"}, "1:webhook"},
    		{TargetID{"httpclient+2e33cdee-fbec-4bdd-917e-7d8e3c5a2531", "localhost:55638"}, "httpclient+2e33cdee-fbec-4bdd-917e-7d8e3c5a2531:localhost:55638"},
    	}
    
    	for i, testCase := range testCases {
    		result := testCase.tid.String()
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 3.5K bytes
    - Viewed (0)
Back to top