Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for mustBeNil (0.12 sec)

  1. src/testing/cover.go

    // It is not covered (yet) by the Go 1 compatibility guidelines.
    func RegisterCover(c Cover) {
    	cover = c
    }
    
    // mustBeNil checks the error and, if present, reports it and exits.
    func mustBeNil(err error) {
    	if err != nil {
    		fmt.Fprintf(os.Stderr, "testing: %s\n", err)
    		os.Exit(2)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 11:37:31 UTC 2023
    - 3.4K bytes
    - Viewed (0)
Back to top