Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for cleanOutputForComparison (0.28 sec)

  1. src/debug/buildinfo/buildinfo_test.go

    		if err := os.WriteFile(name, data, 0666); err != nil {
    			t.Fatal(err)
    		}
    	}
    
    	goVersionRe := regexp.MustCompile("(?m)^go\t.*\n")
    	buildRe := regexp.MustCompile("(?m)^build\t.*\n")
    	cleanOutputForComparison := func(got string) string {
    		// Remove or replace anything that might depend on the test's environment
    		// so we can check the output afterward with a string comparison.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 22 16:22:42 UTC 2023
    - 11.2K bytes
    - Viewed (0)
Back to top