goc icon indicating copy to clipboard operation
goc copied to clipboard

A Comprehensive Coverage Testing System for The Go Programming Language

Results 87 goc issues
Sort by recently updated
recently updated
newest added

RT, 貌似目前goc build时无法支持指定main包的位置

enhancement

构建项目的时候如果使用软连 ,就比较尴尬 比如 软连目录是 /tmp/go-build1634196769/src/git.xiaosankeji.com/guarana/spiderman 实际目录: /home/xiaosan/spiderman ERRO[2021-10-14T15:33:07+08:00][build/gomodules.go:38] Failed to Copy the folder from /tmp/go-build1634196769/src/git.xiaosankeji.com/guarana/spiderman to /tmp/goc-build-7fbd82088fef, the error is: symlink /home/xiaosan/spiderman /tmp/goc-build-7fbd82088fef: file exists ERRO[2021-10-14T15:33:07+08:00][build/tmpfolder.go:49] Fail to move the...

INFO[2021-09-16T22:38:16+08:00][cover/cover.go:228] go list cmd is: [/bin/bash -c go list -json ./...] INFO[2021-09-16T22:38:17+08:00][cover/cover.go:240] INFO[2021-09-16T22:38:17+08:00][build/tmpfolder.go:82] Tmp project generated in: /tmp/goc-build-152a445893ed INFO[2021-09-16T22:38:17+08:00][build/tmpfolder.go:86] mod project? true ERRO[2021-09-16T22:38:17+08:00][build/tmpfolder.go:49] Fail to move the project to temporary...

请问是否支持在A节点上编译,然后把生成的二进制传输到B节点上启动,请求B节点接口,收集覆盖率呢?

v2版本有release的安装包吗 # Linux/AMD64 curl -s -L "https://github.com/qiniu/goc/releases/latest" | sed -nE 's!.*"([^"]*-linux-amd64.tar.gz)".*!https://github.com\1!p' | xargs -n 1 curl -L | tar -zx && chmod +x goc && mv goc /usr/local/bin

我们的web服务只是做了简单的接口处理,主要的逻辑运算,业务处理都封在sdk中,请问我应该怎么做才能统计到sdk这部分的覆盖率

使用goc命令编译,我也遇到了这个问题。问下如何解决。 原go命令行: ` CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "$LDFlags" -o dist/xxxx ` 使用GOC的命令行,报错。具体如附图: ` CGO_ENABLED=0 GOOS=linux GOARCH=amd64 goc build --buildflags="-ldflags '$LDFlags'" --center=1.10.1.100:7777 --agentport=:46593 --debug -o dist/xxxx ` ![image](https://user-images.githubusercontent.com/20694486/173973992-47d0c7de-f838-474e-bda0-f7508d9e4582.png)

很多docker images没有 bash,需要检测bash环境 ![image](https://user-images.githubusercontent.com/11711621/117934208-039a1400-b335-11eb-9cfb-ca3b6b3129b2.png)

enhancement