Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for runnerFor (0.52 sec)

  1. testing/smoke-test/src/smokeTest/groovy/org/gradle/smoketests/AbstractGradleceptionSmokeTest.groovy

            result = null
            result = runnerFor(tasks, testKitDir).build()
        }
    
        protected void fails(List<String> tasks, File testKitDir = null) {
            result = null
            result = runnerFor(tasks, testKitDir).buildAndFail()
        }
    
        private SmokeTestGradleRunner runnerFor(List<String> tasks, File testKitDir) {
            List<String> gradleArgs = tasks + GRADLE_BUILD_TEST_ARGS
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. src/unicode/utf8/utf8.go

    	if n < sz {
    		return RuneError, 1
    	}
    	b1 := p[1]
    	if b1 < accept.lo || accept.hi < b1 {
    		return RuneError, 1
    	}
    	if sz <= 2 { // <= instead of == to help the compiler eliminate some bounds checks
    		return rune(p0&mask2)<<6 | rune(b1&maskx), 2
    	}
    	b2 := p[2]
    	if b2 < locb || hicb < b2 {
    		return RuneError, 1
    	}
    	if sz <= 3 {
    		return rune(p0&mask3)<<12 | rune(b1&maskx)<<6 | rune(b2&maskx), 3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 02:00:36 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  3. src/strings/strings.go

    // r, or -1 if rune is not present in s.
    // If r is utf8.RuneError, it returns the first instance of any
    // invalid UTF-8 byte sequence.
    func IndexRune(s string, r rune) int {
    	switch {
    	case 0 <= r && r < utf8.RuneSelf:
    		return IndexByte(s, byte(r))
    	case r == utf8.RuneError:
    		for i, r := range s {
    			if r == utf8.RuneError {
    				return i
    			}
    		}
    		return -1
    	case !utf8.ValidRune(r):
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:48:16 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modfetch/codehost/codehost.go

    		os.RemoveAll(dir)
    		return "", "", err
    	}
    	return dir, lockfile, nil
    }
    
    type RunError struct {
    	Cmd      string
    	Err      error
    	Stderr   []byte
    	HelpText string
    }
    
    func (e *RunError) Error() string {
    	text := e.Cmd + ": " + e.Err.Error()
    	stderr := bytes.TrimRight(e.Stderr, "\n")
    	if len(stderr) > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:50:24 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  5. src/strconv/quote.go

    	}
    	buf = append(buf, quote)
    	for width := 0; len(s) > 0; s = s[width:] {
    		r := rune(s[0])
    		width = 1
    		if r >= utf8.RuneSelf {
    			r, width = utf8.DecodeRuneInString(s)
    		}
    		if width == 1 && r == utf8.RuneError {
    			buf = append(buf, `\x`...)
    			buf = append(buf, lowerhex[s[0]>>4])
    			buf = append(buf, lowerhex[s[0]&0xF])
    			continue
    		}
    		buf = appendEscapedRune(buf, r, quote, ASCIIonly, graphicOnly)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:28 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  6. src/net/mail/message.go

    Loop:
    	for {
    		r, size := utf8.DecodeRuneInString(p.s[i:])
    
    		switch {
    		case size == 0:
    			return "", errors.New("mail: unclosed quoted-string")
    
    		case size == 1 && r == utf8.RuneError:
    			return "", fmt.Errorf("mail: invalid utf-8 in quoted-string: %q", p.s)
    
    		case escaped:
    			//  quoted-pair = ("\" (VCHAR / WSP))
    
    			if !isVchar(r) && !isWSP(r) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:31:03 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  7. src/strings/builder_test.go

    			t.Errorf("%s: panicked = %v; want %v", tt.name, got, tt.wantPanic)
    		}
    	}
    }
    
    func TestBuilderWriteInvalidRune(t *testing.T) {
    	// Invalid runes, including negative ones, should be written as
    	// utf8.RuneError.
    	for _, r := range []rune{-1, utf8.MaxRune + 1} {
    		var b Builder
    		b.WriteRune(r)
    		check(t, &b, "\uFFFD")
    	}
    }
    
    var someBytes = []byte("some bytes sdljlk jsklj3lkjlk djlkjw")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 19 19:51:15 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  8. src/encoding/csv/reader.go

    )
    
    var errInvalidDelim = errors.New("csv: invalid field or comment delimiter")
    
    func validDelim(r rune) bool {
    	return r != 0 && r != '"' && r != '\r' && r != '\n' && utf8.ValidRune(r) && r != utf8.RuneError
    }
    
    // A Reader reads records from a CSV-encoded file.
    //
    // As returned by [NewReader], a Reader expects input conforming to RFC 4180.
    // The exported fields can be changed to customize the details before the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:32:28 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  9. src/fmt/format.go

    	r := rune(c)
    	if c > utf8.MaxRune {
    		r = utf8.RuneError
    	}
    	buf := f.intbuf[:0]
    	f.pad(utf8.AppendRune(buf, r))
    }
    
    // fmtQc formats an integer as a single-quoted, escaped Go character constant.
    // If the character is not valid Unicode, it will print '\ufffd'.
    func (f *fmt) fmtQc(c uint64) {
    	r := rune(c)
    	if c > utf8.MaxRune {
    		r = utf8.RuneError
    	}
    	buf := f.intbuf[:0]
    	if f.plus {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  10. src/regexp/syntax/prog.go

    		return "", i.Op == InstMatch
    	}
    
    	// Have prefix; gather characters.
    	var buf strings.Builder
    	for i.op() == InstRune && len(i.Rune) == 1 && Flags(i.Arg)&FoldCase == 0 && i.Rune[0] != utf8.RuneError {
    		buf.WriteRune(i.Rune[0])
    		i = p.skipNop(i.Out)
    	}
    	return buf.String(), i.Op == InstMatch
    }
    
    // StartCond returns the leading empty-width conditions that must
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:50:01 UTC 2024
    - 7.7K bytes
    - Viewed (0)
Back to top