• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

casbin / casbin / 356
74%

Build:
DEFAULT BRANCH: master
Ran 29 Aug 2017 05:10PM UTC
Jobs 1
Files 17
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
356

Pull #37

travis-ci

web-flow
Feature: Define RoleManager as interface

Define RoleManager as interface, and rename existing RoleManager struct
to defaultRoleManager to provide a default implementation and backwards
compatability.

Defines RoleManagerConstructor to allow specifying a function for
creating a new RoleManager.

Adds SetRoleManagerConstructor method to Model to allow setting the
function to call for a new instance of RoleManager.
Adds implementation of RoleManagerConstructor to Model that will create
an instance of the defaultRoleManager just like before.

Updates Assertion to reference RoleManager interface instead of an
instance. Updates Assertions.buildRoleLinks() to use newRoleManagerFunc
that holds the RoleManagerConstructor.

All test are passing with the only change being *RoleManager to
RoleManager.
Pull Request #37: Feature: Define RoleManager as interface

11 of 11 new or added lines in 4 files covered. (100.0%)

1050 of 1147 relevant lines covered (91.54%)

100.51 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
enforcer.go

Uncovered Existing Lines

Lines Coverage ∆ File
4
100.0
model/model.go
6
100.0
rbac/role_manager.go
22
100.0
enforcer.go
Jobs
ID Job ID Ran Files Coverage
1 356.1 29 Aug 2017 05:10PM UTC 0
91.54
Travis Job 356.1
Source Files on build 356
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #356
  • Pull Request #37
  • PR Base - master (#355)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc