Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,006 for want (0.03 sec)

  1. internal/ringbuffer/ring_buffer_test.go

    		t.Errorf("Write error: got %T, want testError1", err)
    	}
    	if _, err := rb.Write([]byte{1}); err != (testError1{}) {
    		t.Errorf("Write error: got %T, want testError1", err)
    	}
    	if err := rb.WriteByte(0); err != (testError1{}) {
    		t.Errorf("Write error: got %T, want testError1", err)
    	}
    	if _, err := rb.TryWrite(nil); err != (testError1{}) {
    		t.Errorf("Write error: got %T, want testError1", err)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  2. internal/grid/grid_test.go

    		t.Log("Roundtrip:", time.Since(start))
    		if len(resp) != 0 {
    			t.Errorf("want nil, got %q", string(resp))
    		}
    		if err != RemoteErr(testPayload) {
    			t.Errorf("want error %v(%T), got %v(%T)", RemoteErr(testPayload), RemoteErr(testPayload), err, err)
    		}
    		t.Log("Roundtrip:", time.Since(start))
    	})
    
    	t.Run("localToRemoteHuge", func(t *testing.T) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  3. cmd/object-api-utils_test.go

    		{"abc//./../def", "def"},
    		{"abc/../../././../def", "../../def"},
    	}
    	for _, test := range cleantests {
    		want := test.path != test.result
    		got := pathNeedsClean([]byte(test.path))
    		if !got {
    			t.Logf("no clean: %q", test.path)
    		}
    		if want && !got {
    			t.Errorf("input: %q, want %v, got %v", test.path, want, got)
    		}
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/additional-status-codes.md

    ## Additional status codes
    
    If you want to return additional status codes apart from the main one, you can do that by returning a `Response` directly, like a `JSONResponse`, and set the additional status code directly.
    
    For example, let's say that you want to have a *path operation* that allows to update items, and returns HTTP status codes of 200 "OK" when successful.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 16:12:23 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  5. src/bytes/boundary_test.go

    				t.Fatalf("Index(b[%d:], q[:%d])=%d, want -1\n", i, j, idx)
    			}
    		}
    		q[j-1] = 0
    	}
    
    	// Test differing alignments and sizes of q which always end on a page boundary.
    	q[len(q)-1] = 1 // difference is only found on the last byte
    	for j := 0; j < len(q); j++ {
    		for i := range b {
    			idx := Index(b[i:], q[j:])
    			if idx != -1 {
    				t.Fatalf("Index(b[%d:], q[%d:])=%d, want -1\n", i, j, idx)
    			}
    		}
    	}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Nov 30 20:05:58 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  6. cni/pkg/log/uds_test.go

    		delete(parsedLog, "time")
    		want := map[string]any{
    			"level": cases[i].level,
    			"msg":   cases[i].msg,
    		}
    		if k := cases[i].key; k != nil {
    			want["key"] = *k
    		}
    		assert.Equal(t, want, parsedLog)
    		i++
    	}
    }
    
    func TestParseCniLog(t *testing.T) {
    	wantT := &time.Time{}
    	assert.NoError(t, wantT.UnmarshalText([]byte("2020-01-01T00:00:00.356374Z")))
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Jun 12 16:26:28 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/asm/endtoend_test.go

    			printed = f[0] + "\t" + strings.Join(f[1:], " ")
    		}
    
    		want := fmt.Sprintf("%05d (%s:%d)\t%s", seq, input, lineno, printed)
    		for len(output) > 0 && (output[0] < want || output[0] != want && len(output[0]) >= 5 && output[0][:5] == want[:5]) {
    			if len(output[0]) >= 5 && output[0][:5] == want[:5] {
    				t.Errorf("mismatched output:\nhave %s\nwant %s", output[0], want)
    				output = output[1:]
    				continue Diff
    			}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Dec 07 18:42:59 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  8. dbflute_fess/dfprop/databaseInfoMap.dfprop

        # o variousMap: (NotRequired - Default map:{})
        #  The various settings about JDBC task mainly.
        #
        ; variousMap = map:{
            # o objectTypeTargetList: (NotRequired - Default list:{TABLE;VIEW})
            #  If you want to include other object types in generating target,
            #  you should specify the list of included object types as adding.
            #    e.g. Synonym of Oracle --> list:{TABLE ; VIEW ; SYNONYM}
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 31 23:35:14 UTC 2015
    - 7.3K bytes
    - Viewed (0)
  9. internal/etag/etag_test.go

    	},
    }
    
    func TestString(t *testing.T) {
    	for i, test := range stringTests {
    		s := test.ETag.String()
    		if s != test.String {
    			t.Fatalf("Test %d: got %s - want %s", i, s, test.String)
    		}
    	}
    }
    
    var equalTests = []struct {
    	A     string
    	B     string
    	Equal bool
    }{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 18 17:00:54 UTC 2023
    - 12.6K bytes
    - Viewed (0)
  10. cmd/streaming-v4-unsigned.go

    	}
    	// mustRead reads from input and compares against provided slice.
    	mustRead := func(b ...byte) error {
    		for _, want := range b {
    			got, err := cr.reader.ReadByte()
    			if err == io.EOF {
    				return io.ErrUnexpectedEOF
    			}
    			if got != want {
    				if cr.debug {
    					fmt.Printf("mustread: want: %q got: %q\n", string(want), string(got))
    				}
    				return errMalformedEncoding
    			}
    			if err != nil {
    				return err
    			}
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat May 06 02:53:12 UTC 2023
    - 6.1K bytes
    - Viewed (0)
Back to top