{"id":23661375,"url":"https://github.com/as-pect/as-covers","last_synced_at":"2025-09-01T17:30:43.720Z","repository":{"id":41826432,"uuid":"368326707","full_name":"as-pect/as-covers","owner":"as-pect","description":"Code coverage for AssemblyScript devs","archived":false,"fork":false,"pushed_at":"2023-08-09T05:58:05.000Z","size":1585,"stargazers_count":7,"open_issues_count":2,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-30T01:32:19.864Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/as-pect.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-17T21:30:57.000Z","updated_at":"2025-01-06T10:25:55.000Z","dependencies_parsed_at":"2023-01-28T01:16:19.091Z","dependency_job_id":null,"html_url":"https://github.com/as-pect/as-covers","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/as-pect/as-covers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/as-pect%2Fas-covers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/as-pect%2Fas-covers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/as-pect%2Fas-covers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/as-pect%2Fas-covers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/as-pect","download_url":"https://codeload.github.com/as-pect/as-covers/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/as-pect%2Fas-covers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273162135,"owners_count":25056416,"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","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-12-29T04:57:30.710Z","updated_at":"2025-09-01T17:30:43.387Z","avatar_url":"https://github.com/as-pect.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AS-Covers\n\nCode coverage for AssemblyScript projects that uses a few simple packages to make visualizing how well your code branches are covered.\n\n# Usage\n\nFirst install from npm.\n\n```sh\nnpm install @as-covers/core\n```\n\nNext, add the following transform and entry point to your AssemblyScript compilation.\n\n```sh\n# uses multiple lines for clarity\nasc node_modules/@as-covers/assembly/index.ts\n  --transform @as-covers/transform/lib/index.js\n  --explicitStart\n```\n\nThese will inject some immutable cover points into your web assembly binary.\n\nThe next step is to instantiate the module:\n\n```ts\nimport { Covers } from \"@as-covers/glue\";\nimport * as fs from \"fs\";\nimport { instantiate } from \"@assemblyscript/loader\";\n\n// import your web assembly binary\nconst binary = fs.readFileSync(\"build/untouched.wasm\");\nconst covers = new Covers();\n// Install your imports here\nconst imports = covers.installImports({});\n\n(async function() {\n  const loader = await instantiate(binary, imports);\n  covers.registerLoader(loader);\n  loader.exports._start();\n  process.stdout.write(covers.stringify());\n}());\n\n```\n\nCovers is designed to work over multiple binary compilations with the transform applied. Each cover point is immutably hashed so that you can test code coverage with different test files.\n\nJust remember to register the loader each time before calling the `_start()` method.\n\n# License\n\n```\nMIT License\n\nCopyright (c) 2021 Joshua Tenner \u003ctenner.joshua@gmail.com\u003e\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fas-pect%2Fas-covers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fas-pect%2Fas-covers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fas-pect%2Fas-covers/lists"}