Add a test helper

This commit is contained in:
Bjørn Erik Pedersen 2020-05-22 10:57:25 +02:00
parent 833d16d467
commit c34bf48560
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -6,6 +6,7 @@ import (
"math/rand"
"path/filepath"
"runtime"
"sort"
"strconv"
"testing"
"time"
@ -980,6 +981,15 @@ func content(c resource.ContentProvider) string {
return ccs
}
func pagesToString(pages ...page.Page) string {
var paths []string
for _, p := range pages {
paths = append(paths, p.Path())
}
sort.Strings(paths)
return strings.Join(paths, "|")
}
func dumpPages(pages ...page.Page) {
fmt.Println("---------")
for _, p := range pages {