{"id":24963632,"url":"https://github.com/ipuldev/simple-golang-mock-unit-test","last_synced_at":"2025-10-28T17:03:52.237Z","repository":{"id":199557675,"uuid":"558540187","full_name":"ipuldev/simple-golang-mock-unit-test","owner":"ipuldev","description":"SImple golang unit testing using mock schema","archived":false,"fork":false,"pushed_at":"2022-11-02T16:23:08.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-03T09:57:50.360Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ipuldev.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}},"created_at":"2022-10-27T18:54:05.000Z","updated_at":"2022-10-27T19:03:18.000Z","dependencies_parsed_at":"2023-10-11T00:19:03.645Z","dependency_job_id":"91bf9d8f-3111-4eee-bad1-dc13897282ec","html_url":"https://github.com/ipuldev/simple-golang-mock-unit-test","commit_stats":null,"previous_names":["ipuldev/simple-golang-mock-unit-test","briankliwon/simple-golang-mock-unit-test"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipuldev%2Fsimple-golang-mock-unit-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipuldev%2Fsimple-golang-mock-unit-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipuldev%2Fsimple-golang-mock-unit-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipuldev%2Fsimple-golang-mock-unit-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ipuldev","download_url":"https://codeload.github.com/ipuldev/simple-golang-mock-unit-test/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246117693,"owners_count":20726068,"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":[],"created_at":"2025-02-03T09:57:53.108Z","updated_at":"2025-10-28T17:03:52.161Z","avatar_url":"https://github.com/ipuldev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca name=\"readme-top\"\u003e\u003c/a\u003e\n\n[![MIT License][license-shield]][license-url]\n\n\u003c!-- TABLE OF CONTENTS --\u003e\n\u003cdetails\u003e\n  \u003csummary\u003eTable of Contents\u003c/summary\u003e\n  \u003col\u003e\n    \u003cli\u003e\n      \u003ca href=\"#about-the-project\"\u003eAbout The Project\u003c/a\u003e\n      \u003cul\u003e\n        \u003cli\u003e\u003ca href=\"#built-with\"\u003eBuilt With\u003c/a\u003e\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#contributing\"\u003eContributing\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#license\"\u003eLicense\u003c/a\u003e\u003c/li\u003e\n  \u003c/ol\u003e\n\u003c/details\u003e\n\n\n\n\u003c!-- ABOUT THE PROJECT --\u003e\n## About The Project\n\nHow we handle unit testing when function must be connect to database or third party service, that is so complicated case when we have to connect database first etc. How to make it to be more simple ?..let see mocking\n\nWhat is mock \nIn object-oriented programming, mock objects are simulated objects that mimic the behaviour of real objects in controlled ways, most often as part of a software testing initiative. A programmer typically creates a mock object to test the behaviour of some other object, in much the same way that a car designer uses a crash test dummy to simulate the dynamic behaviour of a human in vehicle impacts. The technique is also applicable in generic programming.  [wikipedia][wikipedia-mock]\n\nIn this project we implement simple example of mocking schema using golang unit test.\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\n\n### Built With\n\n* [![Go][Go.com]][Go-url]\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- USAGE EXAMPLES --\u003e\n## Usage\n1. ```go test ./...```\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- CONTRIBUTING --\u003e\n## Contributing\n\nContributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\nIf you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag \"enhancement\".\nDon't forget to give the project a star! Thanks again!\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/[FEATURE]`)\n3. Commit your Changes (`git commit -m 'Add some [FEATURE]'`)\n4. Push to the Branch (`git push origin feature/[FEATURE]`)\n5. Open a Pull Request\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\n\u003c!-- LICENSE --\u003e\n## License\n\nDistributed under the MIT License. See `LICENSE.txt` for more information.\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\n[GO.com]:https://img.shields.io/badge/GO%20-0769AD?style=flat\u0026logo=go\u0026logoColor=white\n[GO-Url]:https://go.dev/\n[license-shield]: https://img.shields.io/github/license/briankliwon/algorithm-go\n[license-url]: https://github.com/briankliwon/algorithm-go/blob/main/LICENSE\n[wikipedia-mock]:https://en.wikipedia.org/wiki/Mock_object\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipuldev%2Fsimple-golang-mock-unit-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fipuldev%2Fsimple-golang-mock-unit-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipuldev%2Fsimple-golang-mock-unit-test/lists"}