GithubHelp home page GithubHelp logo

ragdoll / container Goto Github PK

View Code? Open in Web Editor NEW
11.0 2.0 0.0 36 KB

Dependency management container for Golang projects

Home Page: https://go.rafdel.co/akisa/container/

License: MIT License

Go 100.00%
golang go solid solid-principles dependency-injection dependency-injection-container dependency-manager inversion-of-control

container's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

container's Issues

Hit 100% test coverage

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

capture

You can open the browser by default by add -o

go tool cover -html=cover.out -o cover.html

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.