Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestEncodeArgs (0.11 sec)

  1. src/cmd/go/internal/work/exec_test.go

    // license that can be found in the LICENSE file.
    
    package work
    
    import (
    	"bytes"
    	"cmd/internal/objabi"
    	"cmd/internal/sys"
    	"fmt"
    	"math/rand"
    	"testing"
    	"time"
    	"unicode/utf8"
    )
    
    func TestEncodeArgs(t *testing.T) {
    	t.Parallel()
    	tests := []struct {
    		arg, want string
    	}{
    		{"", ""},
    		{"hello", "hello"},
    		{"hello\n", "hello\\n"},
    		{"hello\\", "hello\\\\"},
    		{"hello\nthere", "hello\\nthere"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Oct 02 13:15:42 UTC 2021
    - 1.8K bytes
    - Viewed (0)
Back to top