{"id":13367064,"url":"https://github.com/msoap/Go-carpet","last_synced_at":"2025-03-12T18:31:48.554Z","repository":{"id":57487486,"uuid":"52719081","full_name":"msoap/go-carpet","owner":"msoap","description":"Tool for show test coverage in terminal for Go source files","archived":false,"fork":false,"pushed_at":"2024-09-30T21:05:07.000Z","size":144,"stargazers_count":248,"open_issues_count":3,"forks_count":11,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-08T03:46:07.914Z","etag":null,"topics":["cli","golang","test-coverage","unittest"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/msoap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-02-28T12:02:51.000Z","updated_at":"2025-02-23T17:27:19.000Z","dependencies_parsed_at":"2024-10-24T14:18:48.303Z","dependency_job_id":"3be02010-9a93-4945-89da-1caf4ac17f72","html_url":"https://github.com/msoap/go-carpet","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msoap%2Fgo-carpet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msoap%2Fgo-carpet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msoap%2Fgo-carpet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msoap%2Fgo-carpet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msoap","download_url":"https://codeload.github.com/msoap/go-carpet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243271391,"owners_count":20264450,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","golang","test-coverage","unittest"],"created_at":"2024-07-30T00:01:37.670Z","updated_at":"2025-03-12T18:31:48.524Z","avatar_url":"https://github.com/msoap.png","language":"Go","readme":"go-carpet - show test coverage for Go source files\n==================================================\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/msoap/go-carpet.svg)](https://pkg.go.dev/github.com/msoap/go-carpet)\n[![Go](https://github.com/msoap/go-carpet/actions/workflows/go.yml/badge.svg)](https://github.com/msoap/go-carpet/actions/workflows/go.yml)\n[![Coverage Status](https://coveralls.io/repos/github/msoap/go-carpet/badge.svg?branch=master)](https://coveralls.io/github/msoap/go-carpet?branch=master)\n[![Report Card](https://goreportcard.com/badge/github.com/msoap/go-carpet)](https://goreportcard.com/report/github.com/msoap/go-carpet)\n[![Homebrew formula exists](https://img.shields.io/badge/homebrew-🍺-d7af72.svg)](https://github.com/msoap/go-carpet#install)\n\nTo view the test coverage in the terminal, just run `go-carpet`.\n\nIt works outside of the `GOPATH` directory. And it works recursively for multiple packages.\n\nWith `-256colors` option, shades of green indicate the level of coverage.\n\nBy default skip vendor directories (Godeps,vendor), otherwise use `-include-vendor` option.\n\nThe `-mincov` option allows you to specify a coverage threshold to limit the files to be displayed.\n\nUsage\n-----\n\n    usage: go-carpet [options] [paths]\n      -256colors\n        \tuse more colors on 256-color terminal (indicate the level of coverage)\n      -args string\n        \tpass additional arguments for go test\n      -file string\n        \tcomma-separated list of files to test (default: all)\n      -func string\n        \tcomma-separated functions list (default: all functions)\n      -include-vendor\n        \tinclude vendor directories for show coverage (Godeps, vendor)\n      -mincov float\n        \tcoverage threshold of the file to be displayed (in percent) (default 100)\n      -summary\n        \tonly show summary for each file\n      -version\n        \tget version\n\nFor view coverage in less, use `-R` option:\n\n    go-carpet | less -R\n\nInstall\n-------\n\nFrom source:\n\n    go install github.com/msoap/go-carpet@latest\n\nDownload binaries from: [releases](https://github.com/msoap/go-carpet/releases) (OS X/Linux/Windows)\n\nInstall from homebrew (OS X):\n\n    brew tap msoap/tools\n    brew install go-carpet\n    # update:\n    brew upgrade go-carpet\n\n### Screenshot\n\n\u003cimg width=\"662\" alt=\"screen shot 2016-03-06\" src=\"https://cloud.githubusercontent.com/assets/844117/13554107/e6c7c82a-e3a7-11e5-82d6-3481f1fead11.png\"\u003e\n\nSee also\n--------\n\n  * [blog.golang.org](https://blog.golang.org/cover) - the cover story\n  * [gocover.io](https://gocover.io) - simple Go test coverage service\n  * [coveralls.io](https://coveralls.io) - test coverage service\n  * [package cover](https://godoc.org/golang.org/x/tools/cover) - golang.org/x/tools/cover\n  * [gotests](https://github.com/cweill/gotests) - Go commandline tool that generates table driven tests\n  * [docker-golang-checks](https://github.com/msoap/docker-golang-checks) - Go-code checks Docker image\n","funding_links":[],"categories":["测试","測試"],"sub_categories":["高级控制台界面","高級控制台界面"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsoap%2FGo-carpet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsoap%2FGo-carpet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsoap%2FGo-carpet/lists"}