Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 275 for scanOne (0.22 sec)

  1. src/cmd/internal/obj/x86/obj6_test.go

    const marker_start = 1234
    
    func parseTestData(t *testing.T) *ParsedTestData {
    	r := &ParsedTestData{}
    	scanner := bufio.NewScanner(strings.NewReader(testdata))
    	r.marker_to_input = make(map[int][]string)
    	r.marker_to_expected = make(map[int][]string)
    	marker := marker_start
    	input_insns := []string{}
    	for scanner.Scan() {
    		line := scanner.Text()
    		if len(strings.TrimSpace(line)) == 0 {
    			continue
    		}
    		parts := strings.Split(line, "->")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:21:30 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  2. platforms/jvm/testing-jvm/src/test/groovy/org/gradle/api/internal/tasks/testing/detection/DefaultTestClassScannerTest.groovy

        def processor = Stub(TestClassProcessor)
    
        @Subject
        def scanner = new DefaultTestClassScanner(files, detector, processor)
    
        void passesEachClassFileToTestClassDetector() {
            given:
            def class1 = stubFileVisitDetails('class1')
            def class2 = stubFileVisitDetails('class2')
    
            when:
            scanner.run()
    
            then:
            1 * detector.startDetection(processor)
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  3. pkg/test/framework/errors/deprecations.go

    // a DeprecatedError. Use `extraInfo` to pass additional info, like pod namespace/name, etc.
    func FindDeprecatedMessagesInEnvoyLog(logs, extraInfo string) error {
    	scanner := bufio.NewScanner(strings.NewReader(logs))
    	for scanner.Scan() {
    		line := scanner.Text()
    		if strings.Contains(strings.ToLower(line), "deprecated") {
    			if len(extraInfo) > 0 {
    				extraInfo = fmt.Sprintf(" (%s)", extraInfo)
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  4. src/internal/sysinfo/cpuinfo_linux.go

    	// The 512-byte buffer is enough to hold the contents of CPU0
    	buf := make([]byte, 512)
    	err := readLinuxProcCPUInfo(buf)
    	if err != nil {
    		return ""
    	}
    
    	scanner := bufio.NewScanner(bytes.NewReader(buf))
    	for scanner.Scan() {
    		key, value, found := strings.Cut(scanner.Text(), ": ")
    		if !found {
    			continue
    		}
    		switch strings.TrimSpace(key) {
    		case "Model Name", "model name":
    			modelName = value
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:42:42 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  5. src/go/types/commentMap_test.go

    // If there are no matching comments, the result is nil.
    func commentMap(src []byte, rx *regexp.Regexp) (res map[int][]comment) {
    	fset := token.NewFileSet()
    	file := fset.AddFile("", -1, len(src))
    
    	var s scanner.Scanner
    	s.Init(file, src, nil, scanner.ScanComments)
    	var prev token.Pos // position of last non-comment, non-semicolon token
    
    	for {
    		pos, tok, lit := s.Scan()
    		switch tok {
    		case token.EOF:
    			return
    		case token.COMMENT:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/util/yaml/decoder.go

    func NewDocumentDecoder(r io.ReadCloser) io.ReadCloser {
    	scanner := bufio.NewScanner(r)
    	// the size of initial allocation for buffer 4k
    	buf := make([]byte, 4*1024)
    	// the maximum size used to buffer a token 5M
    	scanner.Buffer(buf, 5*1024*1024)
    	scanner.Split(splitYAMLDocument)
    	return &YAMLDecoder{
    		r:       r,
    		scanner: scanner,
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 19 21:24:36 UTC 2021
    - 10.2K bytes
    - Viewed (0)
  7. test/typeparam/issue47896.go

    	Add(T)
    }
    
    // Slice generic slice implementation of a Collection
    type Slice[T any] []*T
    
    func (s *Slice[T]) Add(t *T) {
    	*s = append(*s, t)
    }
    
    type Scanner interface {
    	Scan(...interface{}) error
    }
    
    type Mapper[T any] func(s Scanner, t T) error
    
    type Repository[T any] struct {
    	db *sql.DB
    }
    
    func (r *Repository[T]) scan(rows *sql.Rows, m Mapper[*T], c Collection[*T]) error {
    	for rows.Next() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  8. src/go/internal/gccgoimporter/gccgoinstallation.go

    	cmd := exec.Command(gccgoPath, argv...)
    	stderr, err := cmd.StderrPipe()
    	if err != nil {
    		return
    	}
    
    	err = cmd.Start()
    	if err != nil {
    		return
    	}
    
    	scanner := bufio.NewScanner(stderr)
    	for scanner.Scan() {
    		line := scanner.Text()
    		switch {
    		case strings.HasPrefix(line, "Target: "):
    			inst.TargetTriple = line[8:]
    
    		case line[0] == ' ':
    			args := strings.Fields(line)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 17:49:12 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  9. src/database/sql/sql.go

    	return ns.String, nil
    }
    
    // NullInt64 represents an int64 that may be null.
    // NullInt64 implements the [Scanner] interface so
    // it can be used as a scan destination, similar to [NullString].
    type NullInt64 struct {
    	Int64 int64
    	Valid bool // Valid is true if Int64 is not NULL
    }
    
    // Scan implements the [Scanner] interface.
    func (n *NullInt64) Scan(value any) error {
    	if value == nil {
    		n.Int64, n.Valid = 0, false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 103.6K bytes
    - Viewed (0)
  10. src/go/parser/error_test.go

    	errors := make(map[token.Pos]string)
    
    	var s scanner.Scanner
    	// file was parsed already - do not add it again to the file
    	// set otherwise the position information returned here will
    	// not match the position information collected by the parser
    	s.Init(getFile(fset, filename), src, nil, scanner.ScanComments)
    	var prev token.Pos // position of last non-comment, non-semicolon token
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 19:47:49 UTC 2022
    - 5.9K bytes
    - Viewed (0)
Back to top