Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for toSymbolV1 (0.11 sec)

  1. src/cmd/internal/pkgpath/pkgpath.go

    	} else if bytes.Contains(buf, []byte("go.l__ufer.Run")) {
    		return toSymbolV1, nil
    	} else {
    		return nil, errors.New(cmd + ": unrecognized mangling scheme")
    	}
    }
    
    // mangleCheckCode is the package we compile to determine the mangling scheme.
    const mangleCheckCode = `
    package läufer
    func Run(x int) int {
      return 1
    }
    `
    
    // toSymbolV1 converts a package path using the original mangling scheme.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  2. src/cmd/internal/pkgpath/pkgpath_test.go

    		"p____",
    		"p..u00e4..u4e16.x2e..U0001f703",
    		"p_u00e4_u4e16_0_U0001f703",
    	},
    }
    
    func TestV1(t *testing.T) {
    	for _, test := range symbolTests {
    		if got, want := toSymbolV1(test.input), test.v1; got != want {
    			t.Errorf("toSymbolV1(%q) = %q, want %q", test.input, got, want)
    		}
    	}
    }
    
    func TestV2(t *testing.T) {
    	for _, test := range symbolTests {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 18:26:59 UTC 2022
    - 2.9K bytes
    - Viewed (0)
Back to top