Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestErrorCalls (0.13 sec)

  1. src/cmd/compile/internal/types2/errorcalls_test.go

    	"strconv"
    	"testing"
    )
    
    const (
    	errorfMinArgCount = 4
    	errorfFormatIndex = 2
    )
    
    // TestErrorCalls makes sure that check.errorf calls have at least
    // errorfMinArgCount arguments (otherwise we should use check.error)
    // and use balanced parentheses/brackets.
    func TestErrorCalls(t *testing.T) {
    	files, err := pkgFiles(".")
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	for _, file := range files {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 15 21:57:36 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  2. src/go/types/errorcalls_test.go

    	"go/token"
    	"strconv"
    	"testing"
    )
    
    const (
    	errorfMinArgCount = 4
    	errorfFormatIndex = 2
    )
    
    // TestErrorCalls makes sure that check.errorf calls have at least
    // errorfMinArgCount arguments (otherwise we should use check.error)
    // and use balanced parentheses/brackets.
    func TestErrorCalls(t *testing.T) {
    	fset := token.NewFileSet()
    	files, err := pkgFiles(fset, ".")
    	if err != nil {
    		t.Fatal(err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 15 21:57:36 UTC 2023
    - 2.2K bytes
    - Viewed (0)
Back to top