Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 30 for nextFast (0.39 sec)

  1. src/mime/multipart/multipart_test.go

    	}
    	p, err = mr2.NextPart()
    	if err != nil {
    		t.Fatalf("reading text/html part: %v", err)
    	}
    	if b, err := io.ReadAll(p); string(b) != "<b>body</b>\r\n" || err != nil {
    		t.Fatalf("reading text/html part: got %q, %v", b, err)
    	}
    
    	p, err = mr2.NextPart()
    	if err != io.EOF {
    		t.Fatalf("final inner NextPart = %v; want io.EOF", err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 17:36:47 UTC 2022
    - 30.4K bytes
    - Viewed (0)
  2. schema/naming.go

    		buf                            strings.Builder
    		lastCase, nextCase, nextNumber bool // upper case == true
    		curCase                        = value[0] <= 'Z' && value[0] >= 'A'
    	)
    
    	for i, v := range value[:len(value)-1] {
    		nextCase = value[i+1] <= 'Z' && value[i+1] >= 'A'
    		nextNumber = value[i+1] >= '0' && value[i+1] <= '9'
    
    		if curCase {
    			if lastCase && (nextCase || nextNumber) {
    				buf.WriteRune(v + 32)
    			} else {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 03:46:59 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  3. src/mime/multipart/multipart.go

    // When there are no more parts, the error [io.EOF] is returned.
    //
    // Unlike [Reader.NextPart], it does not have special handling for
    // "Content-Transfer-Encoding: quoted-printable".
    func (r *Reader) NextRawPart() (*Part, error) {
    	return r.nextPart(true, maxMIMEHeaderSize, maxMIMEHeaders())
    }
    
    func (r *Reader) nextPart(rawPart bool, maxMIMEHeaderSize, maxMIMEHeaders int64) (*Part, error) {
    	if r.currentPart != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 16:12:35 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  4. src/mime/multipart/writer_test.go

    		if len(s) == 0 {
    			t.Fatal("String: unexpected empty result")
    		}
    		if s[0] == '\r' || s[0] == '\n' {
    			t.Fatal("String: unexpected newline")
    		}
    	}
    
    	r := NewReader(&b, w.Boundary())
    
    	part, err := r.NextPart()
    	if err != nil {
    		t.Fatalf("part 1: %v", err)
    	}
    	if g, e := part.FormName(), "myfile"; g != e {
    		t.Errorf("part 1: want form name %q, got %q", e, g)
    	}
    	slurp, err := io.ReadAll(part)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 17:36:47 UTC 2022
    - 4.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/debug_test.go

    		return true
    	}
    	return false
    }
    
    func (h *nextHist) addVar(text string) {
    	l := len(h.texts)
    	h.vars[l-1] = append(h.vars[l-1], text)
    }
    
    func invertMapSU8(hf2i map[string]uint8) map[uint8]string {
    	hi2f := make(map[uint8]string)
    	for hs, i := range hf2i {
    		hi2f[i] = hs
    	}
    	return hi2f
    }
    
    func (h *nextHist) equals(k *nextHist) bool {
    	if len(h.f2i) != len(k.f2i) {
    		return false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:11:47 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  6. src/internal/dag/parse.go

    func (p *rulesParser) syntaxError(msg string) {
    	panic(syntaxError(fmt.Sprintf("parsing graph: line %d: syntax error: %s near %s", p.lineno, msg, p.lastWord)))
    }
    
    // nextList parses and returns a comma-separated list of names.
    func (p *rulesParser) nextList() (list []string, token string) {
    	for {
    		tok := p.nextToken()
    		switch tok {
    		case "":
    			if len(list) == 0 {
    				return nil, ""
    			}
    			fallthrough
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  7. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

        taskRunner.assertThreadHoldsLock()
    
        val index = serialTaskQueue.indexOfFirst { it.isReady() }
        if (index == -1) return null
    
        val nextTask = serialTaskQueue.removeAt(index)
        currentTask = nextTask
        contextSwitchCount++
        nextTask.start()
        return nextTask
      }
    
      private interface SerialTask {
        /** Returns true if this task is ready to start. */
        fun isReady() = true
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 29 00:33:04 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  8. src/mime/multipart/example_test.go

    	if err != nil {
    		log.Fatal(err)
    	}
    	if strings.HasPrefix(mediaType, "multipart/") {
    		mr := multipart.NewReader(msg.Body, params["boundary"])
    		for {
    			p, err := mr.NextPart()
    			if err == io.EOF {
    				return
    			}
    			if err != nil {
    				log.Fatal(err)
    			}
    			slurp, err := io.ReadAll(p)
    			if err != nil {
    				log.Fatal(err)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 18:41:18 UTC 2020
    - 1.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/named_certificates_test.go

    			if err != nil {
    				t.Errorf("%d - failed to create cert %d: %v", i, j, err)
    				continue NextTest
    			}
    
    			sniCerts = append(sniCerts, certProvider)
    
    			sig, err := certSignature(certProvider)
    			if err != nil {
    				t.Errorf("%d - failed to get signature for %d: %v", i, j, err)
    				continue NextTest
    			}
    			bySignature[sig] = j
    		}
    
    		c := DynamicServingCertificateController{sniCerts: sniCerts}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 20 08:42:09 UTC 2021
    - 8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java

              // Task must be null, since each execution on this executor can only produce one more
              // execution.
              checkState(submittingTaskQueue.nextTask == null);
              submittingTaskQueue.nextTask = task;
              // requireNonNull(delegate) is safe for reasons similar to requireNonNull(sequencer).
              submittingTaskQueue.nextExecutor = requireNonNull(delegate);
              delegate = null;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 01 21:46:34 UTC 2024
    - 22.1K bytes
    - Viewed (0)
Back to top