github.com/Kintar/etxt@v0.0.0-20221224033739-2fc69f000137/run_coverhtml.sh (about)

     1  #!/bin/bash
     2  
     3  # Notice: requires a test_font.ttf file in etxt/
     4  #         (any normal font will work)
     5  go test -tags gtxt ./... -coverprofile cover_prof.out > /dev/null
     6  go tool cover -html=cover_prof.out
     7  rm cover_prof.out