Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 37 for wantOut (0.09 sec)

  1. src/net/writev_test.go

    		case "windows":
    			var wantCalls int
    			wantSum = want.Len()
    			if wantSum > 0 {
    				wantCalls = 1 // windows will always do 1 syscall, unless sending empty buffer
    			}
    			if len(writeLog.log) != wantCalls {
    				t.Errorf("write calls = %v; want %v", len(writeLog.log), wantCalls)
    			}
    		}
    		if gotSum != wantSum {
    			t.Errorf("writev call sum  = %v; want %v", gotSum, wantSum)
    		}
    		return nil
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 5K bytes
    - Viewed (0)
  2. internal/s3select/sql/value_test.go

    		name    string
    		want    string
    		wantAlt string
    	}
    
    	tests := []test{
    		{
    			name:    valueBuilders[0]().String(),
    			want:    "",
    			wantAlt: "",
    		},
    		{
    			name:    valueBuilders[1]().String(),
    			want:    "true",
    			wantAlt: "false",
    		},
    		{
    			name:    valueBuilders[2]().String(),
    			want:    "byte contents",
    			wantAlt: "",
    		},
    		{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Mar 06 16:56:10 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modfetch/zip_sum_test/zip_sum_test.go

    				}
    				return
    			}
    
    			sum := modfetch.Sum(ctx, test.m)
    			if sum != test.wantSum {
    				if *updateTestData {
    					t.Logf("%s: updating content sum to %s", test.m, sum)
    					test.wantSum = sum
    					needUpdate = true
    				} else {
    					t.Errorf("%s: got content sum %s; want sum %s", test.m, sum, test.wantSum)
    					return
    				}
    			}
    
    			h := sha256.New()
    			f, err := os.Open(zipPath)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 18 19:33:59 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  4. src/net/http/cgi/integration_test.go

    		name   string
    		body   string
    		wantCT string
    	}{
    		{
    			name:   "no body",
    			wantCT: "text/plain; charset=utf-8",
    		},
    		{
    			name:   "html",
    			body:   "<html><head><title>test page</title></head><body>This is a body</body></html>",
    			wantCT: "text/html; charset=utf-8",
    		},
    		{
    			name:   "text",
    			body:   strings.Repeat("gopher", 86),
    			wantCT: "text/plain; charset=utf-8",
    		},
    		{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 07 18:42:44 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  5. pkg/util/hash/hash_test.go

    // limitations under the License.
    
    package hash
    
    import (
    	"testing"
    )
    
    func TestFactory(t *testing.T) {
    	testCases := []struct {
    		name                   string
    		str                    string
    		wantSum                []byte
    		wantStr                string
    		wantUint64             uint64
    		wantLittleEndianUint64 uint64
    	}{
    		{
    			name: "foo",
    			str:  "foo",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Dec 21 20:24:14 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  6. src/mime/multipart/writer_test.go

    			} else if b := params["boundary"]; b != tt.b {
    				t.Errorf("unexpected boundary parameter %q; want %q", b, tt.b)
    			}
    
    			w.Close()
    			wantSub := "\r\n--" + tt.b + "--\r\n"
    			if got := b.String(); !strings.Contains(got, wantSub) {
    				t.Errorf("expected %q in output. got: %q", wantSub, got)
    			}
    		}
    	}
    }
    
    func TestWriterBoundaryGoroutines(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 17:36:47 UTC 2022
    - 4.1K bytes
    - Viewed (0)
  7. src/net/http/fcgi/fcgi_test.go

    		name   string
    		body   string
    		wantCT string
    	}{
    		{
    			name:   "no body",
    			wantCT: "text/plain; charset=utf-8",
    		},
    		{
    			name:   "html",
    			body:   "<html><head><title>test page</title></head><body>This is a body</body></html>",
    			wantCT: "text/html; charset=utf-8",
    		},
    		{
    			name:   "text",
    			body:   strings.Repeat("gopher", 86),
    			wantCT: "text/plain; charset=utf-8",
    		},
    		{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 11 18:51:39 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  8. src/archive/tar/writer_test.go

    		testHeader struct { // WriteHeader(hdr) == wantErr
    			hdr     Header
    			wantErr error
    		}
    		testWrite struct { // Write(str) == (wantCnt, wantErr)
    			str     string
    			wantCnt int
    			wantErr error
    		}
    		testReadFrom struct { // ReadFrom(testFile{ops}) == (wantCnt, wantErr)
    			ops     fileOps
    			wantCnt int64
    			wantErr error
    		}
    		testClose struct { // Close() == wantErr
    			wantErr error
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 38.7K bytes
    - Viewed (0)
  9. src/go/format/format_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// Capture original address and value of a BasicLit node
    	// which will undergo formatting changes during printing.
    	wantLit := file.Decls[0].(*ast.GenDecl).Specs[0].(*ast.ValueSpec).Values[0].(*ast.BasicLit)
    	wantVal := wantLit.Value
    
    	var buf bytes.Buffer
    	if err = Node(&buf, fset, file); err != nil {
    		t.Fatal("Node failed:", err)
    	}
    	diff(t, buf.Bytes(), []byte(golden))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 20 03:54:46 UTC 2021
    - 4.5K bytes
    - Viewed (0)
  10. cni/pkg/log/uds_test.go

    }
    
    func TestParseCniLog(t *testing.T) {
    	wantT := &time.Time{}
    	assert.NoError(t, wantT.UnmarshalText([]byte("2020-01-01T00:00:00.356374Z")))
    	cases := []struct {
    		name string
    		in   string
    		out  cniLog
    	}{
    		{
    			"without keys",
    			`{"level":"info","time":"2020-01-01T00:00:00.356374Z","msg":"my message"}`,
    			cniLog{
    				Level:     "info",
    				Time:      *wantT,
    				Msg:       "my message",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 16:26:28 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top