Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 154 for Newlines (0.2 sec)

  1. cmd/gotemplate/gotemplate_test.go

    		numSpaces int
    		content   string
    		expected  string
    	}{
    		"empty": {
    			numSpaces: 10,
    			content:   "",
    			expected:  "",
    		},
    		"trailing-newline": {
    			numSpaces: 2,
    			content:   "hello\nworld\n",
    			expected:  "hello\n  world\n  ",
    		},
    		"no-trailing-newline": {
    			numSpaces: 1,
    			content:   "hello\nworld",
    			expected:  "hello\n world",
    		},
    		"zero-indent": {
    			numSpaces: 0,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 22 13:43:42 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. hack/verify-non-mutating-validation.sh

    mutationOutput=$(find . -name validation.go -print0 | xargs -0 egrep -n ' = old' | grep -v '// +k8s:verify-mutation:reason=clone' || true)
    foundMutation=${#mutationOutput}
    # when there's no match, there is a newline
    if [ "$foundMutation" -gt "1" ]; then
      echo "${mutationOutput}"
      echo "It looks like an assignment of a value using the old object.  This is a heuristic check.  If a mutation is happening in validation please fix it."
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 08 18:37:55 UTC 2021
    - 2K bytes
    - Viewed (0)
  3. src/cmd/internal/goobj/objfile_test.go

    	}
    }
    
    var issue41621prolog = `
    package main
    var lines = []string{
    `
    
    var issue41621epilog = `
    }
    func getLines() []string {
    	return lines
    }
    func main() {
    	println(getLines())
    }
    `
    
    func TestIssue41621LargeNumberOfRelocations(t *testing.T) {
    	if testing.Short() || (buildcfg.GOARCH != "amd64") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:22:12 UTC 2022
    - 3K bytes
    - Viewed (0)
  4. test/syntax/semi6.go

    // errorcheck
    
    // Copyright 2010 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    type T1	// ERROR "newline in type declaration"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 02 02:56:41 UTC 2020
    - 299 bytes
    - Viewed (0)
  5. test/syntax/semi7.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    func main() {
    	if x { }	// GCCGO_ERROR "undefined"
    	else { }	// ERROR "unexpected semicolon or newline before .?else.?|unexpected else"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 329 bytes
    - Viewed (0)
  6. test/syntax/semi5.go

    // Copyright 2010 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    func main()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 262 bytes
    - Viewed (0)
  7. src/cmd/gofmt/testdata/stdin3.golden

    		//gofmt -stdin
    
    		/* note: no newline at end of file */
    		for i := 0; i < 10; i++ {
    			s += i
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 22 00:25:13 UTC 2014
    - 101 bytes
    - Viewed (0)
  8. src/cmd/gofmt/testdata/stdin3.input

    		//gofmt -stdin
    
    		/* note: no newline at end of file */
    		for i := 0; i < 10; i++ { s += i }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 22 00:25:13 UTC 2014
    - 96 bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/escape/ArrayBasedCharEscaperTest.java

      private static final ImmutableMap<Character, String> NO_REPLACEMENTS = ImmutableMap.of();
      private static final ImmutableMap<Character, String> SIMPLE_REPLACEMENTS =
          ImmutableMap.of(
              '\n', "<newline>",
              '\t', "<tab>",
              '&', "<and>");
    
      public void testSafeRange() throws IOException {
        // Basic escaping of unsafe chars (wrap them in {,}'s)
        CharEscaper wrappingEscaper =
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 23:02:38 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/escape/ArrayBasedCharEscaperTest.java

      private static final ImmutableMap<Character, String> NO_REPLACEMENTS = ImmutableMap.of();
      private static final ImmutableMap<Character, String> SIMPLE_REPLACEMENTS =
          ImmutableMap.of(
              '\n', "<newline>",
              '\t', "<tab>",
              '&', "<and>");
    
      public void testSafeRange() throws IOException {
        // Basic escaping of unsafe chars (wrap them in {,}'s)
        CharEscaper wrappingEscaper =
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 23:02:38 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top