Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for runnerFor (0.53 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/runtime/utf8.go

    //
    // If the string appears to be incomplete or decoding problems
    // are encountered (runeerror, k + 1) is returned to ensure
    // progress when decoderune is used to iterate over a string.
    func decoderune(s string, k int) (r rune, pos int) {
    	pos = k
    
    	if k >= len(s) {
    		return runeError, k + 1
    	}
    
    	s = s[k:]
    
    	switch {
    	case t2 <= s[0] && s[0] < t3:
    		// 0080-07FF two byte sequence
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 06 02:46:02 UTC 2020
    - 3.4K bytes
    - Viewed (0)
  3. src/syscall/wtf8_windows.go

    func encodeWTF16(s string, buf []uint16) []uint16 {
    	for i := 0; i < len(s); {
    		// Cannot use 'for range s' because it expects valid
    		// UTF-8 runes.
    		r, size := utf8.DecodeRuneInString(s[i:])
    		if r == utf8.RuneError {
    			// Check if s[i:] contains a valid WTF-8 encoded surrogate.
    			if sc := s[i:]; len(sc) >= 3 && sc[0] == 0xED && 0xA0 <= sc[1] && sc[1] <= 0xBF && 0x80 <= sc[2] && sc[2] <= 0xBF {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 15 09:26:16 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  4. test/stringrange.go

    		ok = false
    	}
    	if c != 23456 {
    		fmt.Println("range empty string assigned to value:", c)
    		ok = false
    	}
    
    	for _, c := range "a\xed\xa0\x80a" {
    		if c != 'a' && c != utf8.RuneError {
    			fmt.Printf("surrogate UTF-8 does not error: %U\n", c)
    			ok = false
    		}
    	}
    
    	if !ok {
    		fmt.Println("BUG: stringrange")
    		os.Exit(1)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 08 21:01:23 UTC 2012
    - 1.5K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/mod/sumdb/tlog/note.go

    func isValidRecordText(text []byte) bool {
    	var last rune
    	for i := 0; i < len(text); {
    		r, size := utf8.DecodeRune(text[i:])
    		if r < 0x20 && r != '\n' || r == utf8.RuneError && size == 1 || last == '\n' && r == '\n' {
    			return false
    		}
    		i += size
    		last = r
    	}
    	if last != '\n' {
    		return false
    	}
    	return true
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 29 20:10:15 UTC 2019
    - 3.7K bytes
    - Viewed (0)
  6. src/unicode/utf8/example_test.go

    }
    
    func ExampleEncodeRune_outOfRange() {
    	runes := []rune{
    		// Less than 0, out of range.
    		-1,
    		// Greater than 0x10FFFF, out of range.
    		0x110000,
    		// The Unicode replacement character.
    		utf8.RuneError,
    	}
    	for i, c := range runes {
    		buf := make([]byte, 3)
    		size := utf8.EncodeRune(buf, c)
    		fmt.Printf("%d: %d %[2]s %d\n", i, buf, size)
    	}
    	// Output:
    	// 0: [239 191 189] � 3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 05 21:29:18 UTC 2021
    - 3.6K bytes
    - Viewed (0)
  7. src/log/slog/text_handler.go

    			if b != '\\' && (b == ' ' || b == '=' || !safeSet[b]) {
    				return true
    			}
    			i++
    			continue
    		}
    		r, size := utf8.DecodeRuneInString(s[i:])
    		if r == utf8.RuneError || unicode.IsSpace(r) || !unicode.IsPrint(r) {
    			return true
    		}
    		i += size
    	}
    	return false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 23 22:56:07 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  8. src/path/match.go

    		return
    	}
    	if chunk[0] == '\\' {
    		chunk = chunk[1:]
    		if len(chunk) == 0 {
    			err = ErrBadPattern
    			return
    		}
    	}
    	r, n := utf8.DecodeRuneInString(chunk)
    	if r == utf8.RuneError && n == 1 {
    		err = ErrBadPattern
    	}
    	nchunk = chunk[n:]
    	if len(nchunk) == 0 {
    		err = ErrBadPattern
    	}
    	return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 23 17:33:57 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  9. internal/kms/context.go

    				dst.WriteString(`u00`)
    				dst.WriteByte(hexTable[b>>4])
    				dst.WriteByte(hexTable[b&0xF])
    			}
    			i++
    			start = i
    			continue
    		}
    		c, size := utf8.DecodeRuneInString(s[i:])
    		if c == utf8.RuneError && size == 1 {
    			if start < i {
    				dst.WriteString(s[start:i])
    			}
    			dst.WriteString(`\ufffd`)
    			i += size
    			start = i
    			continue
    		}
    		// U+2028 is LINE SEPARATOR.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 6K bytes
    - Viewed (0)
  10. src/cmd/internal/archive/archive_test.go

    		got := exactly16Bytes(str)
    		if len(got) != 16 {
    			t.Errorf("exactly16Bytes(%q) is %q, length %d", str, got, len(got))
    		}
    		// Make sure it is full runes.
    		for _, c := range got {
    			if c == utf8.RuneError {
    				t.Errorf("exactly16Bytes(%q) is %q, has partial rune", str, got)
    			}
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 02 19:27:33 UTC 2023
    - 7.9K bytes
    - Viewed (0)
Back to top