Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for cd (0.12 sec)

  1. src/archive/tar/strconv_test.go

    		if got != v.want {
    			t.Errorf("formatPAXTime(%ds, %dns): got %q, want %q",
    				v.sec, v.nsec, got, v.want)
    		}
    	}
    }
    
    func TestParsePAXRecord(t *testing.T) {
    	medName := strings.Repeat("CD", 50)
    	longName := strings.Repeat("AB", 100)
    
    	vectors := []struct {
    		in      string
    		wantRes string
    		wantKey string
    		wantVal string
    		ok      bool
    	}{
    		{"6 k=v\n\n", "\n", "k", "v", true},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 09 05:28:50 GMT 2021
    - 14K bytes
    - Viewed (0)
  2. src/bytes/example_test.go

    }
    
    func ExampleBuffer_Next() {
    	var b bytes.Buffer
    	b.Grow(64)
    	b.Write([]byte("abcde"))
    	fmt.Printf("%s\n", b.Next(2))
    	fmt.Printf("%s\n", b.Next(2))
    	fmt.Printf("%s", b.Next(2))
    	// Output:
    	// ab
    	// cd
    	// e
    }
    
    func ExampleBuffer_Read() {
    	var b bytes.Buffer
    	b.Grow(64)
    	b.Write([]byte("abcde"))
    	rdbuf := make([]byte, 1)
    	n, err := b.Read(rdbuf)
    	if err != nil {
    		panic(err)
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:40 GMT 2024
    - 15K bytes
    - Viewed (1)
  3. misc/go_android_exec/main.go

    		`; export GOPROXY=` + os.Getenv("GOPROXY") +
    		`; export GOCACHE="` + deviceRoot + `/gocache"` +
    		`; export PATH="` + deviceGoroot + `/bin":$PATH` +
    		`; export HOME="` + deviceRoot + `/home"` +
    		`; cd "` + deviceCwd + `"` +
    		"; '" + deviceBin + "' " + strings.Join(os.Args[2:], " ")
    	code, err := adbRun(cmd)
    	signal.Reset(syscall.SIGQUIT)
    	close(quit)
    	return code, err
    }
    
    type exitCodeFilter struct {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Aug 21 17:46:57 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  4. src/archive/tar/writer_test.go

    			testRemaining{0, 0},
    		},
    	}, {
    		maker: makeSparse{makeReg{4, "abcd"}, sparseHoles{{2, 3}}, 8},
    		tests: []testFnc{
    			testReadFrom{fileOps{"ab", int64(3), "cd"}, 7, io.ErrUnexpectedEOF},
    			testRemaining{1, 0},
    		},
    	}, {
    		maker: makeSparse{makeReg{4, "abcd"}, sparseHoles{{2, 3}}, 8},
    		tests: []testFnc{
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
Back to top