- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for printContents (0.61 sec)
-
src/cmd/pack/pack_test.go
ar = openArchive(name, os.O_RDONLY, []string{helloFile.name}) var buf strings.Builder stdout = &buf verbose = true defer func() { stdout = os.Stdout verbose = false }() ar.scan(ar.printContents) ar.a.File().Close() result := buf.String() // Expect verbose output plus file contents. expect := fmt.Sprintf("%s\n%s", helloFile.name, helloFile.contents) if result != expect {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 04 16:27:35 UTC 2023 - 12.5K bytes - Viewed (0)