{"id":25959773,"url":"https://github.com/ajalab/congo","last_synced_at":"2025-07-03T00:05:32.866Z","repository":{"id":108873968,"uuid":"143518948","full_name":"ajalab/congo","owner":"ajalab","description":"A Concolic Test Generation Framework for Go","archived":false,"fork":false,"pushed_at":"2019-03-07T08:26:26.000Z","size":476,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-04-07T09:44:11.942Z","etag":null,"topics":["concolic-testing","go","test-generation"],"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/ajalab.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":"2018-08-04T10:17:08.000Z","updated_at":"2022-08-22T04:40:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"1f72c559-bc8f-4a76-b69c-be1a55464111","html_url":"https://github.com/ajalab/congo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ajalab/congo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajalab%2Fcongo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajalab%2Fcongo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajalab%2Fcongo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajalab%2Fcongo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ajalab","download_url":"https://codeload.github.com/ajalab/congo/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajalab%2Fcongo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263234944,"owners_count":23434918,"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":["concolic-testing","go","test-generation"],"created_at":"2025-03-04T18:48:27.774Z","updated_at":"2025-07-03T00:05:32.770Z","avatar_url":"https://github.com/ajalab.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Congo\n\n![screenshot](assets/screenshot.png)\n\nCongo is a test generation framework for [Go](https://golang.org/).\nIt adopts [concolic testing](https://en.wikipedia.org/wiki/Concolic_testing) to generate test cases that will\nachieve better test coverage than randomly generated ones.\n\nCongo is still under development and not stable or sufficient for practical use now.\n\n## Dependencies\n\nCongo requires [Z3](https://github.com/Z3Prover/z3) to solve symbolic constraints.\nThe latest version is recommended.\n\nCongo assumes that `z3.h` exists in the default include path and `libz3` exists in the default library path.\nIf you placed Z3 headers or libraries in a custom directory,\nyou may have to set `CGO_CFLAGS` or `CGO_LDFLAGS` to specify the correct path to them.\nPlease refer to the [cgo documentation](https://golang.org/cmd/cgo/) for more information.\n\n## Install\n\n```sh\n$ go get -u github.com/ajalab/congo/...\n```\n\n## Usage\n\n```\n$ congo -f \u003cfunction name\u003e [-o \u003coutput file name\u003e] \u003cpackage\u003e\n```\n\nYou can specify the package by package path (e.g., `github.com/ajalab/congo`) or file name (e.g., `foo.go`), but the second pattern is available when `GO111MODULE=on`.\n\nIf `-o` option is not specified, Congo will output the generated test code to stdout.\nHowever, you may not use redirection to generate test files like `congo -f Foo foo.go \u003e foo_test.go`,\nbecause it first creates empty `foo_test.go`, which will prevent the go compiler from building your package.\n\nCurrently Congo generates a separate package (`*_test`) for a target package.\nThis means you cannot specify unexported functions (starting with a lower letter).\n\n## Features\n\nThe following types and operations are currently supported.\n\n- booleans and logical operators\n- integers (`int`, `uint`, `int8`, ...) and basic arithmetic operators. Congo treats an integer as a bit-vector.\n- strings (only concatenation, checking equality, and computing length)\n- pointers of above types. Congo supports pointer dereference and store. Congo detects panic caused by nil pointer dereference.\n- function calls within the target package.\n\n## Unsupported Features\n\nThough Congo is being enthusiastically developed,\nlots of features that you will need are not supported yet.\n\n- struct\n- floating points\n- arrays and slices\n- maps\n- channels\n- goroutines\n- ...\n\n## Internals\n\nSee [INTERNALS.md](INTERNALS.md) for details on how Congo works.\n\n## License\n\nCongo is licensed under the [MIT License](LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajalab%2Fcongo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajalab%2Fcongo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajalab%2Fcongo/lists"}