Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 639 for text (0.18 sec)

  1. src/bufio/scan_test.go

    }
    
    // Test that the line splitter handles a final empty line with a carriage return but no newline.
    func TestScanLineEmptyFinalLineWithCR(t *testing.T) {
    	const text = "abcdefghijklmn\nopqrstuvwxyz\n\r"
    	lines := []string{
    		"abcdefghijklmn",
    		"opqrstuvwxyz",
    		"",
    	}
    	testNoNewline(text, lines, t)
    }
    
    var testError = errors.New("testError")
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 22 16:22:42 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  2. misc/go_android_exec/exitcode_test.go

    )
    
    func TestExitCodeFilter(t *testing.T) {
    	// Write text to the filter one character at a time.
    	var out strings.Builder
    	f, exitStr := newExitCodeFilter(&out)
    	// Embed a "fake" exit code in the middle to check that we don't get caught on it.
    	pre := "abc" + exitStr + "123def"
    	text := pre + exitStr + `1`
    	for i := 0; i < len(text); i++ {
    		_, err := f.Write([]byte{text[i]})
    		if err != nil {
    			t.Fatal(err)
    		}
    	}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed May 03 14:54:58 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  3. src/cmd/asm/internal/lex/lex.go

    type Token struct {
    	ScanToken
    	text string
    }
    
    // Make returns a Token with the given rune (ScanToken) and text representation.
    func Make(token ScanToken, text string) Token {
    	// Substitute the substitutes for . and /.
    	text = strings.ReplaceAll(text, "\u00B7", ".")
    	text = strings.ReplaceAll(text, "\u2215", "/")
    	return Token{ScanToken: token, text: text}
    }
    
    func (l Token) String() string {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 18:31:05 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  4. cmd/metacache-stream_test.go

    shifts.wb.expect-noinput", "src/compress/flate/testdata/huffman-text-shift.dyn.expect", "src/compress/flate/testdata/huffman-text-shift.dyn.expect-noinput", "src/compress/flate/testdata/huffman-text-shift.golden", "src/compress/flate/testdata/huffman-text-shift.in", "src/compress/flate/testdata/huffman-text-shift.wb.expect", "src/compress/flate/testdata/huffman-text-shift.wb.expect-noinput", "src/compress/flate/testdata/huffman-text.dyn.expect", "src/compress/flate/testdata/huffman-text.dyn.expect-noinput",...
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 15K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/lex/tokenizer.go

    }
    
    func (t *Tokenizer) Col() int {
    	return t.s.Pos().Column
    }
    
    func (t *Tokenizer) Next() ScanToken {
    	s := t.s
    	for {
    		t.tok = ScanToken(s.Scan())
    		if t.tok != scanner.Comment {
    			break
    		}
    		text := s.TokenText()
    		t.line += strings.Count(text, "\n")
    		if constraint.IsGoBuild(text) {
    			t.tok = BuildComment
    			break
    		}
    	}
    	switch t.tok {
    	case '\n':
    		t.line++
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Aug 04 20:35:21 GMT 2022
    - 3K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/lex/slice.go

    	s.pos++
    	if s.pos >= len(s.tokens) {
    		return scanner.EOF
    	}
    	return s.tokens[s.pos].ScanToken
    }
    
    func (s *Slice) Text() string {
    	return s.tokens[s.pos].text
    }
    
    func (s *Slice) File() string {
    	return s.base.Filename()
    }
    
    func (s *Slice) Base() *src.PosBase {
    	return s.base
    }
    
    func (s *Slice) SetBase(base *src.PosBase) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jun 29 22:49:50 GMT 2023
    - 1.6K bytes
    - Viewed (0)
  7. internal/s3select/select_test.go

    			wantResult: `{"text":"a text, with comma"}`,
    		},
    		{
    			name:       "select-text-direct",
    			input:      testInput,
    			query:      `SELECT text from s3object s WHERE id = 1`,
    			wantResult: `{"text":"a text, with comma"}`,
    		},
    		{
    			name:       "select-time-direct",
    			input:      testInput,
    			query:      `SELECT time from s3object s WHERE id = 2`,
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 76.2K bytes
    - Viewed (0)
  8. internal/config/compress/compress_test.go

    	}{
    		// invalid input
    		{",,,", []string{}, false},
    		{"", []string{}, false},
    		{",", []string{}, false},
    		{"/", []string{}, false},
    		{"text/*,/", []string{}, false},
    
    		// valid input
    		{".txt,.log", []string{".txt", ".log"}, true},
    		{"text/*,application/json", []string{"text/*", "application/json"}, true},
    	}
    
    	for _, testCase := range testCases {
    		testCase := testCase
    		t.Run(testCase.str, func(t *testing.T) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 1.8K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/asm/pseudo_test.go

    	}
    
    	nonRuntimeTests := []errtest{
    		{"TEXT", "", "expect two or three operands for TEXT"},
    		{"TEXT", "%", "expect two or three operands for TEXT"},
    		{"TEXT", "1, 1", "TEXT symbol \"<erroneous symbol>\" must be a symbol(SB)"},
    		{"TEXT", "$\"foo\", 0, $1", "TEXT symbol \"<erroneous symbol>\" must be a symbol(SB)"},
    		{"TEXT", "$0É:0, 0, $1", "expected end of operand, found É"}, // Issue #12467.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  10. istioctl/cmd/root_test.go

    	t.Helper()
    
    	if strings.Contains(gotHelpText, flag) != wantExists {
    		if wantExists {
    			t.Errorf("%q flag was expected but not found in help text", flag)
    		} else {
    			t.Errorf("%q flag was found in help text but not expected", flag)
    		}
    	}
    }
    
    func TestHideInheritedFlags(t *testing.T) {
    	const (
    		parentFlag0 = "parent-flag0"
    		parentFlag1 = "parent-flag1"
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jan 15 17:59:55 GMT 2021
    - 2.4K bytes
    - Viewed (0)
Back to top