1:Endo-Testing: Unit Testing with Mock Objects (2000): See introduction for the definition of mocked object 2:The Little Mocker:See the part on fakes, specifically, "a Fake has business behavior. You can drive a
This is the sequel to Writing An Interpreter In Go and this time we're writing a compiler and a virtual machine for Monkey. Same codebase, same approach, new goals. Code front and center, step by step explained, fully unit tested and runnable.
kit/httpserver" "github.com/acronis/go-appkit/httpserver/middleware" "github.com/acronis/go-appkit/log" "github.com/acronis/go-appkit/profserver" "github.com/acronis/go-appkit/restapi" "github.com/acronis/go-appkit/service" ) func main() { if err := runApp(); err != nil { go...
No 3rd party libraries!You're not left wondering: "But how does tool X do that?" We won't use a tool X. We only use the Go standard library and write everything ourselves. Tests!The interpreter we build in the book isfully tested!Sometimes in TDD style, sometimes with the tests wri...
简单的 GoLang 单元 要开始编写单元测试,首先要有需测试的组件。 在本练习中,我们使用以下服务定义: type ProductService interface { IsProductReservable(id int) (bool, error) } 针对此服务定义,我们有一个实现,并有兴趣测试一下。 该实现具有一些业务逻辑,用于判断产品是否可保留。 该实现还依赖数据访问对象...
Make a copy of thehello-world-templatedirectory to get started. You can run its tests with thego testcommand. All test files must end with_test.goand all specs must be listed inall_specs_test.go. You can use thego testcommand to run GoSpec's specs. The integration with gotest requir...
Spec URL: https://fab.fedorapeople.org/packages/SRPMS/golang-github-bettercap-recording.spec SRPM URL: https://fab.fedorapeople.org/packages/SRPMS/golang-github-bettercap-recording-0-0.1.20200404git3ce1dcf.fc31.src.rpm Project URL: https://github.com/bettercap/recording Description: This package...
Added support for "mmmm" and "dddd" in excel date time parser. Apr 1, 2016 cell_test.go Unit tests for "mmmm" and "dddd" Apr 1, 2016 col.go add style to Col Jun 30, 2015 col_test.go Add hidden cell property and rudimentary column support Oct 10, 2014 common_test.go go fmt ...
excelize.go Optimize memory usage when stream flush and save (qax-os#659) Oct 5, 2020 excelize.svg Combine functions: Sep 16, 2019 excelize_test.go Update conversion between integer types and unit tests Oct 23, 2020 file.go Optimize memory usage when stream flush and save (qax-os#659) ...
col_test.go optimization: checking error in unit tests Dec 24, 2019 comment.go Improve code coverage unit tests Dec 29, 2019 comment_test.go Improve code coverage unit tests Dec 29, 2019 datavalidation.go Improve code coverage unit tests Dec 29, 2019 datavalidation_test.go Improve code cover...