Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 411 for Got (0.02 sec)

  1. cmd/auth-handler_test.go

    		if s3Error != testCase.s3Error {
    			if _, err := io.ReadAll(testCase.req.Body); toAPIErrorCode(ctx, err) != testCase.s3Error {
    				t.Fatalf("Test %d: Unexpected S3 error: want %d - got %d (got after reading request %s)", i, testCase.s3Error, s3Error, toAPIError(ctx, err).Code)
    			}
    		}
    	}
    }
    
    func TestCheckAdminRequestAuthType(t *testing.T) {
    	ctx, cancel := context.WithCancel(context.Background())
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  2. internal/kms/secret-key_test.go

    		Ciphertext: key.Ciphertext,
    	})
    	if err != nil {
    		t.Fatalf("Failed to decrypt key: %v", err)
    	}
    	if !bytes.Equal(key.Plaintext, plaintext) {
    		t.Fatalf("Decrypted key does not match generated one: got %x - want %x", key.Plaintext, plaintext)
    	}
    }
    
    func TestDecryptKey(t *testing.T) {
    	KMS, err := ParseSecretKey("my-key:eEm+JI9/q4JhH8QwKvf3LKo4DEBl6QbfvAl1CAbMIv8=")
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. clause/expression_test.go

    			if stmt.SQL.String() != result.Result {
    				t.Errorf("generated SQL is not equal, expects %v, but got %v", result.Result, stmt.SQL.String())
    			}
    
    			if !reflect.DeepEqual(result.ExpectedVars, stmt.Vars) {
    				t.Errorf("generated vars is not equal, expects %v, but got %v", result.ExpectedVars, stmt.Vars)
    			}
    		})
    	}
    }
    
    func TestExpression(t *testing.T) {
    	column := "column-name"
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Aug 10 05:34:33 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  4. src/bufio/example_test.go

    	scanner := bufio.NewScanner(strings.NewReader(input))
    	scanner.Split(onComma)
    	for scanner.Scan() {
    		fmt.Printf("Got a token %q\n", scanner.Text())
    	}
    	if err := scanner.Err(); err != nil {
    		fmt.Fprintln(os.Stderr, "reading input:", err)
    	}
    	// Output:
    	// Got a token "1"
    	// Got a token "2"
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Nov 01 21:52:12 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/lex/lex_test.go

    		input.Push(NewTokenizer(test.error, strings.NewReader(test.input), nil))
    		err := firstError(input)
    		if err == nil {
    			t.Errorf("%s: got no error", test.error)
    			continue
    		}
    		if !strings.Contains(err.Error(), test.error) {
    			t.Errorf("got error %q expected %q", err.Error(), test.error)
    		}
    	}
    }
    
    // firstError returns the first error value triggered by the input.
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Aug 29 07:48:38 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  6. internal/grid/README.md

    In the examples we use a `MSS` type, which is a `map[string]string` that is `msgp` serializable.
    
    ```go
        handler := func(request *grid.MSS) (*grid.MSS, *grid.RemoteErr) {
            fmt.Println("Got request with field", request["myfield"])
            // Do something with payload
            return NewMSSWith(map[string]string{"result": "ok"}), nil
        }
    	
        // Create a typed handler.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  7. tests/scopes_test.go

    		t.Errorf("Should found two users's name in 1, 2, but got %v", len(users1))
    	}
    
    	DB.Scopes(NameIn1And2, NameIn2And3).Find(&users2)
    	if len(users2) != 1 {
    		t.Errorf("Should found one user's name is 2, but got %v", len(users2))
    	}
    
    	DB.Scopes(NameIn([]string{users[0].Name, users[2].Name})).Find(&users3)
    	if len(users3) != 2 {
    		t.Errorf("Should found two users's name in 1, 3, but got %v", len(users3))
    	}
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Fri Jan 12 08:42:21 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  8. cmd/erasure-coding.go

    				_, err = hash.Write([]byte{byte(i)})
    				failOnErr(err)
    				_, err = hash.Write(data)
    				failOnErr(err)
    				got[conf] = map[ErasureAlgo]uint64{algo: hash.Sum64()}
    			}
    
    			if a, b := want[conf], got[conf]; !reflect.DeepEqual(a, b) {
    				fmt.Fprintf(os.Stderr, "%v: error on self-test [d:%d,p:%d]: want %#v, got %#v\n", algo, conf[0], conf[1], a, b)
    				ok = false
    				continue
    			}
    			// Delete first shard and reconstruct...
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jan 31 02:11:45 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  9. cmd/server-startup-msg_test.go

    	if !reflect.DeepEqual(expectedAPIEndpoints, newAPIEndpoints) {
    		t.Fatalf("Expected %#v, got %#v", expectedAPIEndpoints, newAPIEndpoints)
    	}
    
    	apiEndpoints = []string{"http://%%%%%:9000"}
    	newAPIEndpoints = stripStandardPorts(apiEndpoints, "")
    	if !reflect.DeepEqual(apiEndpoints, newAPIEndpoints) {
    		t.Fatalf("Expected %#v, got %#v", apiEndpoints, newAPIEndpoints)
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 20:51:54 UTC 2024
    - 3K bytes
    - Viewed (0)
  10. cmd/kms-handlers_test.go

    			if want.CreatedBy != kms.StubCreatedBy {
    				t.Fatalf("want key created by %s, got %s", kms.StubCreatedBy, want.CreatedBy)
    			}
    			if want.CreatedAt != kms.StubCreatedAt {
    				t.Fatalf("want key created at %s, got %s", kms.StubCreatedAt, want.CreatedAt)
    			}
    			if test.wantKeyNames[i] != want.Name {
    				t.Fatalf("want key name %s, got %s", test.wantKeyNames[i], want.Name)
    			}
    		}
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 22.3K bytes
    - Viewed (0)
Back to top