Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of about 10,000 for String2 (0.18 sec)

  1. src/cmd/asm/internal/asm/endtoend_test.go

    		t.Errorf("asm: %s assembly failed", goarch)
    		return
    	}
    	output := strings.Split(testOut.String(), "\n")
    
    	// Reconstruct expected output by independently "parsing" the input.
    	data, err := os.ReadFile(input)
    	if err != nil {
    		t.Error(err)
    		return
    	}
    	lineno := 0
    	seq := 0
    	hexByLine := map[string]string{}
    	lines := strings.SplitAfter(string(data), "\n")
    Diff:
    	for _, line := range lines {
    		lineno++
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 07 18:42:59 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  2. istioctl/pkg/proxystatus/proxystatus_test.go

    type execTestCase struct {
    	args     []string
    	revision string
    	noIstiod bool
    
    	// Typically use one of the three
    	expectedOutput string // Expected constant output
    	expectedString string // String output is expected to contain
    
    	wantException bool
    }
    
    func TestProxyStatus(t *testing.T) {
    	cases := []execTestCase{
    		{ // case 0, with no Isitod instance
    			args:           []string{},
    			noIstiod:       true,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 08:28:50 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  3. istioctl/pkg/proxyconfig/proxyconfig_test.go

    )
    
    type execTestCase struct {
    	execClientConfig map[string][]byte
    	args             []string
    
    	// Typically use one of the three
    	expectedOutput string // Expected constant output
    	expectedString string // String output is expected to contain
    
    	wantException bool
    }
    
    func TestProxyConfig(t *testing.T) {
    	loggingConfig := map[string][]byte{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 10 21:51:29 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  4. src/runtime/debug/mod.go

    	bi = new(BuildInfo)
    	var (
    		last *Module
    		line string
    		ok   bool
    	)
    	// Reverse of BuildInfo.String(), except for go version.
    	for len(data) > 0 {
    		line, data, ok = strings.Cut(data, newline)
    		if !ok {
    			break
    		}
    		switch {
    		case strings.HasPrefix(line, pathLine):
    			elem := line[len(pathLine):]
    			bi.Path = string(elem)
    		case strings.HasPrefix(line, modLine):
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 15:06:51 UTC 2023
    - 7.6K bytes
    - Viewed (1)
  5. staging/src/k8s.io/apiserver/pkg/endpoints/openapi/openapi.go

    	}
    }
    
    func friendlyName(name string) string {
    	nameParts := strings.Split(name, "/")
    	// Reverse first part. e.g., io.k8s... instead of k8s.io...
    	if len(nameParts) > 0 && strings.Contains(nameParts[0], ".") {
    		parts := strings.Split(nameParts[0], ".")
    		for i, j := 0, len(parts)-1; i < j; i, j = i+1, j-1 {
    			parts[i], parts[j] = parts[j], parts[i]
    		}
    		nameParts[0] = strings.Join(parts, ".")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 09 18:11:41 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/ScalarCollectionIntegrationTest.groovy

                    println "strings: \$strings"
                    println "name: \$strings.name"
                    println "display-name: \$strings.displayName"
                }
            }
        }
    }
    
    apply plugin: Rules
    """
    
            when:
            run("show")
    
            then:
            output.contains("strings: ${type.simpleName}<String> 'strings'")
            output.contains("name: strings")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/runtime/schema/group_version.go

    }
    
    func ParseGroupKind(gk string) GroupKind {
    	i := strings.Index(gk, ".")
    	if i == -1 {
    		return GroupKind{Kind: gk}
    	}
    
    	return GroupKind{Group: gk[i+1:], Kind: gk[:i]}
    }
    
    // ParseGroupResource turns "resource.group" string into a GroupResource struct.  Empty strings are allowed
    // for each field.
    func ParseGroupResource(gr string) GroupResource {
    	if i := strings.Index(gr, "."); i >= 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 30 09:08:59 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  8. src/mime/quotedprintable/reader_test.go

    			}
    			res[errStr]++
    			if strings.Contains(errStr, "invalid hex byte ") {
    				if strings.HasSuffix(errStr, "0x20") && (strings.Contains(s, "=0 ") || strings.Contains(s, "=A ") || strings.Contains(s, "= ")) {
    					return
    				}
    				if strings.HasSuffix(errStr, "0x3d") && (strings.Contains(s, "=0=") || strings.Contains(s, "=A=")) {
    					return
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  9. src/text/template/parse/node.go

    	NodeType
    	Pos
    	tr   *Tree
    	Text string // Comment text.
    }
    
    func (t *Tree) newComment(pos Pos, text string) *CommentNode {
    	return &CommentNode{tr: t, NodeType: NodeComment, Pos: pos, Text: text}
    }
    
    func (c *CommentNode) String() string {
    	var sb strings.Builder
    	c.writeTo(&sb)
    	return sb.String()
    }
    
    func (c *CommentNode) writeTo(sb *strings.Builder) {
    	sb.WriteString("{{")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/vendor_gopath_issue11409.txt

    package main
    
    import (
    	"fmt"
    	"os"
    	"os/exec"
    	"path/filepath"
    	"strings"
    )
    
    func changeVolume(s string, f func(s string) string) string {
    	vol := filepath.VolumeName(s)
    	return f(vol) + s[len(vol):]
    }
    
    func main() {
    	gopath := changeVolume(os.Args[1], strings.ToLower)
    	dir := changeVolume(os.Args[2], strings.ToUpper)
    	cmd := exec.Command("go", "run", "hello.go")
    	cmd.Dir = dir
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 982 bytes
    - Viewed (0)
Back to top