Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestComment (0.18 sec)

  1. src/go/printer/printer_test.go

    		t.Error("expected offset 1") // error in test
    	}
    
    	testComment(t, f, len(src), &ast.Comment{Slash: pos, Text: "//-style comment"})
    	testComment(t, f, len(src), &ast.Comment{Slash: pos, Text: "/*-style comment */"})
    	testComment(t, f, len(src), &ast.Comment{Slash: pos, Text: "/*-style \n comment */"})
    	testComment(t, f, len(src), &ast.Comment{Slash: pos, Text: "/*-style comment \n\n\n */"})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  2. src/go/doc/comment_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package doc
    
    import (
    	"bytes"
    	"go/parser"
    	"go/token"
    	"internal/diff"
    	"testing"
    )
    
    func TestComment(t *testing.T) {
    	fset := token.NewFileSet()
    	pkgs, err := parser.ParseDir(fset, "testdata/pkgdoc", nil, parser.ParseComments)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if pkgs["pkgdoc"] == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 10 06:33:18 UTC 2022
    - 3K bytes
    - Viewed (0)
Back to top