Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 566 for incorect (0.18 sec)

  1. utils/tests/utils.go

    	"go/ast"
    	"reflect"
    	"testing"
    	"time"
    
    	"gorm.io/gorm/utils"
    )
    
    func AssertObjEqual(t *testing.T, r, e interface{}, names ...string) {
    	for _, name := range names {
    		rv := reflect.Indirect(reflect.ValueOf(r))
    		ev := reflect.Indirect(reflect.ValueOf(e))
    		if rv.IsValid() != ev.IsValid() {
    			t.Errorf("%v: expect: %+v, got %+v", utils.FileWithLineNum(), r, e)
    			return
    		}
    		got := rv.FieldByName(name).Interface()
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Mar 10 09:21:56 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  2. tests/test_repeated_cookie_headers.py

        response.set_cookie("cookie-name", "cookie-value")
        return {}
    
    
    def set_indirect_cookie(*, dep: str = Depends(set_cookie)):
        return dep
    
    
    @app.get("/directCookie")
    def get_direct_cookie(dep: str = Depends(set_cookie)):
        return {"dep": dep}
    
    
    @app.get("/indirectCookie")
    def get_indirect_cookie(dep: str = Depends(set_indirect_cookie)):
        return {"dep": dep}
    
    
    client = TestClient(app)
    
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Jun 13 12:44:51 GMT 2020
    - 792 bytes
    - Viewed (0)
  3. internal/config/config_test.go

    				`comment="really long comment"`:                {},
    			},
    		},
    		// Incorrect delimiter, expected fields should be empty.
    		{
    			input:          `comment:"really long comment" connection_string:"host=localhost port=2832"`,
    			keys:           []string{"connection_string", "comment"},
    			expectedFields: map[string]struct{}{},
    		},
    		// Incorrect type of input v/s required keys.
    		{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Aug 18 22:55:17 GMT 2022
    - 4.2K bytes
    - Viewed (0)
  4. docs_src/security/tutorial003.py

        if not user_dict:
            raise HTTPException(status_code=400, detail="Incorrect username or password")
        user = UserInDB(**user_dict)
        hashed_password = fake_hash_password(form_data.password)
        if not hashed_password == user.hashed_password:
            raise HTTPException(status_code=400, detail="Incorrect username or password")
    
        return {"access_token": user.username, "token_type": "bearer"}
    
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat May 14 11:59:59 GMT 2022
    - 2.4K bytes
    - Viewed (0)
  5. analysis/analysis-api-fe10/tests-gen/org/jetbrains/kotlin/analysis/api/fe10/test/cases/generated/cases/components/compileTimeConstantProvider/Fe10IdeNormalAnalysisSourceModuleCompileTimeConstantEvaluatorTestGenerated.java

      @Test
      @TestMetadata("propertyInCompanionObject_indirect.kt")
      public void testPropertyInCompanionObject_indirect() {
        runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/propertyInCompanionObject_indirect.kt");
      }
    
      @Test
      @TestMetadata("propertyInCompanionObject_indirect_twice.kt")
      public void testPropertyInCompanionObject_indirect_twice() {
    Java
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Feb 16 12:48:24 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/NtStatus.java

            "The operation completed successfully.",
            "A device attached to the system is not functioning.",
            "Incorrect function.",
            "The parameter is incorrect.",
            "Invalid access to memory location.",
            "The handle is invalid.",
            "The parameter is incorrect.",
            "The system cannot find the file specified.",
            "The system cannot find the file specified.",
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 11.1K bytes
    - Viewed (0)
  7. docs_src/security/tutorial007_an.py

            current_password_bytes, correct_password_bytes
        )
        if not (is_correct_username and is_correct_password):
            raise HTTPException(
                status_code=status.HTTP_401_UNAUTHORIZED,
                detail="Incorrect username or password",
                headers={"WWW-Authenticate": "Basic"},
            )
        return credentials.username
    
    
    @app.get("/users/me")
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 1.2K bytes
    - Viewed (0)
  8. tests/test_security_oauth2_optional.py

                        "type": "value_error.missing",
                    }
                ]
            }
        )
    
    
    def test_strict_login_incorrect_grant_type():
        response = client.post(
            "/login",
            data={"username": "johndoe", "password": "secret", "grant_type": "incorrect"},
        )
        assert response.status_code == 422
        assert response.json() == IsDict(
            {
                "detail": [
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  9. association.go

    			}
    		}
    
    		for idx, value := range values {
    			rv := reflect.Indirect(reflect.ValueOf(value))
    			appendToRelations(reflectValue, rv, clear && idx == 0)
    		}
    
    		if len(values) > 0 {
    			association.Error = associationDB.Updates(reflectValue.Addr().Interface()).Error
    		}
    	}
    
    	for _, assignBack := range assignBacks {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu May 04 11:30:45 GMT 2023
    - 21.2K bytes
    - Viewed (0)
  10. schema/field.go

    		field.ValueOf = func(ctx context.Context, value reflect.Value) (interface{}, bool) {
    			fieldValue := reflect.Indirect(value).Field(fieldIndex)
    			return fieldValue.Interface(), fieldValue.IsZero()
    		}
    	default:
    		field.ValueOf = func(ctx context.Context, v reflect.Value) (interface{}, bool) {
    			v = reflect.Indirect(v)
    			for _, fieldIdx := range field.StructField.Index {
    				if fieldIdx >= 0 {
    					v = v.Field(fieldIdx)
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 32K bytes
    - Viewed (1)
Back to top