Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of about 10,000 for String4 (0.18 sec)

  1. src/mime/multipart/formdata_test.go

    // license that can be found in the LICENSE file.
    
    package multipart
    
    import (
    	"bytes"
    	"fmt"
    	"io"
    	"math"
    	"net/textproto"
    	"os"
    	"strings"
    	"testing"
    )
    
    func TestReadForm(t *testing.T) {
    	b := strings.NewReader(strings.ReplaceAll(message, "\n", "\r\n"))
    	r := NewReader(b, boundary)
    	f, err := r.ReadForm(25)
    	if err != nil {
    		t.Fatal("ReadForm:", err)
    	}
    	defer f.RemoveAll()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 05 18:31:56 UTC 2024
    - 14K bytes
    - Viewed (0)
  2. src/path/filepath/match_test.go

    			t.Fatal(err)
    		}
    	}
    
    	tests := []globTest{
    		{"a", []string{"a"}},
    		{"b", []string{"b"}},
    		{"c", []string{}},
    		{"*", []string{"a", "b", "dir"}},
    		{"d*", []string{"dir"}},
    		{"*i*", []string{"dir"}},
    		{"*r", []string{"dir"}},
    		{"?ir", []string{"dir"}},
    		{"?r", []string{}},
    		{"d*/*/bin/git.exe", []string{"dir/d/bin/git.exe"}},
    	}
    
    	// test absolute paths
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:38:19 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  3. src/runtime/race/race_test.go

    // comparison.
    func processLog(testName string, tsanLog []string) string {
    	if !strings.HasPrefix(testName, "Race") && !strings.HasPrefix(testName, "NoRace") {
    		return ""
    	}
    	gotRace := false
    	for _, s := range tsanLog {
    		if strings.Contains(s, "DATA RACE") {
    			gotRace = true
    			break
    		}
    	}
    
    	failing := strings.Contains(testName, "Failing")
    	expRace := !strings.HasPrefix(testName, "No")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/debug_test.go

    	}
    
    	if s := stderr.String(); s != "" {
    		t.Fatalf("Stderr = %s\nWant empty", s)
    	}
    
    	return stdout.String()
    }
    
    // tstring provides two strings, o (stdout) and e (stderr)
    type tstring struct {
    	o string
    	e string
    }
    
    func (t tstring) String() string {
    	return t.o + t.e
    }
    
    type pos struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:11:47 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  5. test/fixedbugs/issue29264.go

    	got := fmt.Sprint(a)
    	want := strings.Repeat("[", 100) + "42" + strings.Repeat("]", 100)
    	if got != want {
    		fmt.Printf("got  %q\nwant %q\n", got, want)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 18 00:13:58 UTC 2018
    - 882 bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/testplugin/plugin_test.go

    	return m.Run()
    }
    
    func goCmd(t *testing.T, op string, args ...string) string {
    	if t != nil {
    		t.Helper()
    	}
    	var flags []string
    	if op != "tool" {
    		flags = []string{"-gcflags", gcflags}
    	}
    	return run(t, filepath.Join(goroot, "bin", "go"), append(append([]string{op}, flags...), args...)...)
    }
    
    // escape converts a string to something suitable for a shell command line.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:32:53 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  7. test/fixedbugs/bug248.dir/bug3.go

    	// path is full (rooted) path name.  check suffix for gc, prefix for gccgo
    	if s := reflect.TypeOf(v0).PkgPath(); !strings.HasSuffix(s, "/bug0") && !strings.HasPrefix(s, "bug0") {
    		println("bad v0 path", len(s), s)
    		panic("fail")
    	}
    	if s := reflect.TypeOf(v1).PkgPath(); !strings.HasSuffix(s, "/bug1") && !strings.HasPrefix(s, "bug1") {
    		println("bad v1 path", s)
    		panic("fail")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 26 15:20:42 UTC 2018
    - 1.9K bytes
    - Viewed (0)
  8. internal/logger/message/audit/entry.go

    	entry.ReqHost = r.Host
    	entry.ReqPath = r.URL.Path
    
    	q := r.URL.Query()
    	reqQuery := make(map[string]string, len(q))
    	for k, v := range q {
    		reqQuery[k] = strings.Join(v, ",")
    	}
    	entry.ReqQuery = reqQuery
    
    	reqHeader := make(map[string]string, len(r.Header))
    	for k, v := range r.Header {
    		reqHeader[k] = strings.Join(v, ",")
    	}
    	entry.ReqHeader = reqHeader
    
    	wh := w.Header()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/authorization/metrics/metrics_test.go

    			t.Fatal(err)
    		}
    		authorizationDecisionsTotal.Reset()
    	}
    
    }
    
    type dummyAuthorizer struct {
    	decision authorizer.Decision
    	err      error
    }
    
    func (d *dummyAuthorizer) Authorize(ctx context.Context, attrs authorizer.Attributes) (authorizer.Decision, string, error) {
    	return d.decision, "", d.err
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 13:20:59 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/mod/rsc.io_sampler_v1.2.0.txt

    	var tags []language.Tag
    	for _, line := range strings.Split(s, "\n") {
    		line = strings.TrimSpace(line)
    		if line == "" {
    			continue
    		}
    		f := strings.Split(line, ": ")
    		if len(f) != 3 {
    			continue
    		}
    		tag := language.Make(f[1])
    		tags = append(tags, tag)
    		t.byTag[tag.String()] = f[2]
    	}
    	t.matcher = language.NewMatcher(tags)
    	return t
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 12 20:46:50 UTC 2018
    - 3.2K bytes
    - Viewed (0)
Back to top