{"id":16610606,"url":"https://github.com/aprosail/expect","last_synced_at":"2025-06-23T08:36:39.740Z","repository":{"id":239394408,"uuid":"799411443","full_name":"aprosail/expect","owner":"aprosail","description":"A utilities library for golang testing.","archived":false,"fork":false,"pushed_at":"2024-05-23T06:02:46.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-23T06:33:01.002Z","etag":null,"topics":["expect","go","golang","syntax-sugar","test","testing-tools","tobe-evaluation"],"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/aprosail.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":"2024-05-12T04:02:29.000Z","updated_at":"2024-05-29T12:53:35.248Z","dependencies_parsed_at":"2024-05-12T05:21:05.544Z","dependency_job_id":"b76b9eff-46d7-43ee-9747-0895c600a42a","html_url":"https://github.com/aprosail/expect","commit_stats":null,"previous_names":["aprosail/expect"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aprosail%2Fexpect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aprosail%2Fexpect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aprosail%2Fexpect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aprosail%2Fexpect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aprosail","download_url":"https://codeload.github.com/aprosail/expect/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242900550,"owners_count":20203803,"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":["expect","go","golang","syntax-sugar","test","testing-tools","tobe-evaluation"],"created_at":"2024-10-12T01:31:11.860Z","updated_at":"2025-03-10T18:24:00.015Z","avatar_url":"https://github.com/aprosail.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# expect\n\nSyntax sugar for easier and highlighted golang testing.\n\nBefore:\n\n```go\npackage demo_test\n\nimport (\n  \"testing\"\n)\n\nfunc TestDemo(t *testing.T) {\n  if 1 + 1 != 2 {\n    t.Fatalf(\"Expect %v, but got %v\", 2, 1 + 1)\n  }\n\n  if 1 + 2 != 3 {\n    t.Fatalf(\"Expect %v, but got %v\", 3, 1 + 2)\n  }\n\n  if 1 + 3 != 4 {\n    t.Fatalf(\"Expect %v, but got %v\", 4, 1 + 3)\n  }\n}\n```\n\nAfter:\n\n```go\npackage demo_test\n\nimport (\n  \"testing\"\n  \"github.com/aprosail/expect\"\n)\n\nfunc TestDemo(t *testing.T) {\n  const expect = 2\n  const actual = 1 + 1\n  e := expect.Init(t, nil)\n  e.Expect(1 + 1).ToBe(2)\n  e.Expect(1 + 2).ToBe(3)\n  e.Expect(1 + 3).ToBe(4)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faprosail%2Fexpect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faprosail%2Fexpect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faprosail%2Fexpect/lists"}