Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/parvez3019/coffeemachine
https://github.com/parvez3019/coffeemachine
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/parvez3019/coffeemachine
- Owner: parvez3019
- Created: 2020-12-16T17:12:58.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-16T17:14:11.000Z (about 4 years ago)
- Last Synced: 2024-10-12T00:41:09.881Z (3 months ago)
- Language: Go
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
Awesome Lists containing this project
README
Go version 1.15.1
Run test in CoffeeMachineService_test to run test the machine
Note :
1) Followed YAGNI while writing this code
2) Could not do TDD because of time crunch but tried where ever it was possible and important
3) Tried to code in a way that this can be extensible
4) Haven't implemented parallel drink as we are running this through test only. Using go routines this can de
done easily as I have added locks on domains updates! We can fire N go routine and call makeBeverage() to run in parallelIMPORTANT NOTE :
Haven't added unit test for Alert Event Publisher or for domains due to time crunch, but we can test the alert
publisher by mocking and write UT for domain.