On Fri, Sep 13, 2024 at 03:16:28AM -0700, Fulton Shaw wrote:
> Take a look at https://github.com/xhd2015/xgo#incremental-coverage
>
> Example incremental code coverage:
> https://github.com/xhd2015/xgo/blob/master/
> doc/img/coverage.jpg
Thanks but I don't know how to run it, I get:
git diff --diff-filter=R --summary --ignore-submodules "$compareRef" $ref
-- || true
panic: Diff err: runtime error: invalid memory address or nil pointer
dereference
goroutine 11 [running]:
some-git.com/some-corp/some-service/some-lv1/code-lens/support/testing-local/handler.InitStatic()
some-git.com/some-corp/some-service/some-lv1/code-lens/support/testing-local/handler/init.go:88
+0x225
created by
some-git.com/some-corp/some-service/some-lv1/code-lens/support/testing-local/cmd/codelens-tool-coverage/run.setupFiles
some-git.com/some-corp/some-service/some-lv1/code-lens/support/testing-local/cmd/codelens-tool-coverage/run/main.go:247
+0x248
exit status 2
I tried to run it with changes commited on another branch and with
non-staged changes on master.
ref is always empty:
ref=
even when the environment variable is set:
ref=HEAD xgo tool coverage serve cover.out
--
Arkadiusz Drabczyk <[email protected]>
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/66e82e2f.050a0220.121ee3.2bdaSMTPIN_ADDED_BROKEN%40gmr-mx.google.com.