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