Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for expected_name (0.05 seconds)

  1. tests/test_request_params/test_path/test_required_str.py

            ),
        ],
    )
    def test_schema(path: str, expected_name: str, expected_title: str):
        assert app.openapi()["paths"][path]["get"]["parameters"] == [
            {
                "required": True,
                "schema": {"title": expected_title, "type": "string"},
                "name": expected_name,
                "in": "path",
            }
        ]
    
    
    @pytest.mark.parametrize(
        "path",
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  2. tests/connection_test.go

    	"gorm.io/driver/mysql"
    	"gorm.io/gorm"
    )
    
    func TestWithSingleConnection(t *testing.T) {
    	expectedName := "test"
    	var actualName string
    
    	setSQL, getSQL := getSetSQL(DB.Dialector.Name())
    	if len(setSQL) == 0 || len(getSQL) == 0 {
    		return
    	}
    
    	err := DB.Connection(func(tx *gorm.DB) error {
    		if err := tx.Exec(setSQL, expectedName).Error; err != nil {
    			return err
    		}
    
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Mon Sep 08 09:19:22 GMT 2025
    - 943 bytes
    - Click Count (0)
  3. internal/event/name_test.go

    		}
    
    		if !testCase.expectErr {
    			if !reflect.DeepEqual(name, testCase.expectedName) {
    				t.Fatalf("test %v: data: expected: %v, got: %v", i+1, testCase.expectedName, name)
    			}
    		}
    	}
    }
    
    func TestParseName(t *testing.T) {
    	var blankName Name
    
    	testCases := []struct {
    		s            string
    		expectedName Name
    		expectErr    bool
    	}{
    		{"s3:ObjectAccessed:*", ObjectAccessedAll, false},
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 7.4K bytes
    - Click Count (0)
  4. compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/OperatingSystemProfileActivator.java

            }
    
            boolean result = actualArch.equals(test);
    
            return reverse ? !result : result;
        }
    
        private boolean determineNameMatch(String expectedName, String actualName) {
            String test = expectedName.toLowerCase(Locale.ENGLISH);
            boolean reverse = false;
    
            if (test.startsWith("!")) {
                reverse = true;
                test = test.substring(1);
            }
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 5.3K bytes
    - Click Count (0)
Back to Top