ragdoll / container Goto Github PK
View Code? Open in Web Editor NEWDependency management container for Golang projects
Home Page: https://go.rafdel.co/akisa/container/
License: MIT License
Dependency management container for Golang projects
Home Page: https://go.rafdel.co/akisa/container/
License: MIT License
Compare against tools like Uber's dig
Running the following commands will display the functions that need more test cases
go test -coverprofile=cover.out
go tool cover -func=cover.out
After running it, I get
go.rafdel.co/akisa/container/container.go:18: New 100.0%
go.rafdel.co/akisa/container/container.go:27: Bind 100.0%
go.rafdel.co/akisa/container/container.go:32: BindShared 100.0%
go.rafdel.co/akisa/container/container.go:37: Singleton 100.0%
go.rafdel.co/akisa/container/container.go:41: provide 88.9%
go.rafdel.co/akisa/container/container.go:58: Alias 100.0%
go.rafdel.co/akisa/container/container.go:66: Make 100.0%
go.rafdel.co/akisa/container/container.go:94: getBinding 100.0%
go.rafdel.co/akisa/container/container.go:106: Invoke 100.0%
go.rafdel.co/akisa/container/container.go:115: extractParameters 87.5%
go.rafdel.co/akisa/container/container.go:129: Get 100.0%
go.rafdel.co/akisa/container/container.go:138: Has 100.0%
go.rafdel.co/akisa/container/errors.go:20: Error 0.0%
total: (statements) 93.0%
If you want a visual aid, you can run
go tool cover -html=cover.out
and open the generated HTML page in the browser.
A piece uncovered code will be displayed like this
You can open the browser by default by add -o
go tool cover -html=cover.out -o cover.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.