...

Text file src/cmd/go/testdata/script/cover_runs.txt

Documentation: cmd/go/testdata/script

     1[compiler:gccgo] skip 'gccgo has no cover tool'
     2[short] skip
     3
     4go test -short -coverpkg=strings strings regexp
     5! stdout '[^0-9]0\.0%'
     6stdout  'strings.*coverage:.*[1-9][0-9.]+%'
     7stdout  'regexp.*coverage:.*[1-9][0-9.]+%'
     8
     9go test -short -cover strings math regexp
    10! stdout '[^0-9]0\.0%'
    11stdout  'strings.*coverage:.*[1-9][0-9.]+%'
    12stdout  'math.*coverage:.*[1-9][0-9.]+%'
    13stdout  'regexp.*coverage:.*[1-9][0-9.]+%'

View as plain text