Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 239 for test_0 (0.21 sec)

  1. internal/auth/credentials_test.go

    		if err != nil {
    			if testCase.expectedErr == nil {
    				t.Fatalf("test %v: error: expected = <nil>, got = %v", i+1, err)
    			}
    			if testCase.expectedErr.Error() != err.Error() {
    				t.Fatalf("test %v: error: expected = %v, got = %v", i+1, testCase.expectedErr, err)
    			}
    		} else {
    			if testCase.expectedErr != nil {
    				t.Fatalf("test %v: error: expected = %v, got = <nil>", i+1, testCase.expectedErr)
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  2. internal/bpool/bpool_test.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package bpool
    
    import "testing"
    
    // Tests - bytePool functionality.
    func TestBytePool(t *testing.T) {
    	size := uint64(4)
    	width := 1024
    	capWidth := 2048
    
    	bufPool := NewBytePoolCap(size, width, capWidth)
    
    	// Check the width
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 19:13:27 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  3. internal/event/name_test.go

    		data, err := xml.Marshal(testCase.name)
    		expectErr := (err != nil)
    
    		if expectErr != testCase.expectErr {
    			t.Fatalf("test %v: error: expected: %v, got: %v", i+1, testCase.expectErr, expectErr)
    		}
    
    		if !testCase.expectErr {
    			if !reflect.DeepEqual(data, testCase.expectedData) {
    				t.Fatalf("test %v: data: expected: %v, got: %v", i+1, string(testCase.expectedData), string(data))
    			}
    		}
    	}
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  4. internal/handlers/proxy_test.go

    Harshavardhana <******@****.***> 1703206615 -0800
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Dec 22 00:56:55 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  5. internal/jwt/parser_test.go

    		0,
    	},
    }
    
    func mapClaimsToken(claims *MapClaims) string {
    	claims.SetAccessKey("test")
    	j := jwt.NewWithClaims(jwt.SigningMethodHS512, claims)
    	tk, _ := j.SignedString([]byte("HelloSecret"))
    	return tk
    }
    
    func standardClaimsToken(claims *StandardClaims) string {
    	claims.AccessKey = "test"
    	claims.Subject = "test"
    	j := jwt.NewWithClaims(jwt.SigningMethodHS512, claims)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Nov 05 19:20:08 GMT 2021
    - 6K bytes
    - Viewed (0)
  6. internal/grid/grid_test.go

    	const testPayload = "Hello Grid World!"
    
    	start := time.Now()
    	req := NewMSSWith(map[string]string{"test": testPayload})
    	resp, err := h1.Call(context.Background(), remoteConn, req)
    	errFatal(err)
    	if resp.Get("test") != testPayload {
    		t.Errorf("want %q, got %q", testPayload, resp.Get("test"))
    	}
    	t.Log("Roundtrip:", time.Since(start))
    	h1.PutResponse(resp)
    
    	start = time.Now()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 30 15:03:35 GMT 2024
    - 30.1K bytes
    - Viewed (0)
  7. internal/grid/benchmark_test.go

    				}
    			})
    		}
    	})
    }
    
    func BenchmarkStream(b *testing.B) {
    	tests := []struct {
    		name string
    		fn   func(b *testing.B, n int)
    	}{
    		{name: "request", fn: benchmarkGridStreamReqOnly},
    		{name: "responses", fn: benchmarkGridStreamRespOnly},
    	}
    	for _, test := range tests {
    		b.Run(test.name, func(b *testing.B) {
    			for n := 2; n <= 32; n *= 2 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 12.2K bytes
    - Viewed (0)
  8. internal/s3select/select_test.go

    			wantResult: `{"request":{"uri":"/1","header":{"User-Agent":"test"}}}`,
    			withJSON: `{"request":{"uri":"/1","header":{"User-Agent":"test"}}}
    {"request":{"uri":"/2","header":{}}}`,
    		},
    		{
    			name:       "is-not-missing",
    			query:      `select * from s3object[*] as s where s.request.header['User-Agent'] is not missing`,
    			wantResult: `{"request":{"uri":"/1","header":{"User-Agent":"test"}}}`,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 76.2K bytes
    - Viewed (0)
  9. internal/s3select/sql/value_test.go

    }
    
    func TestValue_SameTypeAs(t *testing.T) {
    	type fields struct {
    		a, b Value
    	}
    	type test struct {
    		name   string
    		fields fields
    		wantOk bool
    	}
    	var tests []test
    	for i := range valueBuilders {
    		a := valueBuilders[i]()
    		for j := range valueBuilders {
    			b := valueBuilders[j]()
    			tests = append(tests, test{
    				name: fmt.Sprint(a.GetTypeString(), "==", b.GetTypeString()),
    				fields: fields{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 06 16:56:10 GMT 2023
    - 12.5K bytes
    - Viewed (0)
  10. internal/s3select/sql/timestampfuncs_test.go

    Harshavardhana <******@****.***> 1622584780 -0700
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 2.2K bytes
    - Viewed (0)
Back to top