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

casbin / casbin / 357
74%

Build:
DEFAULT BRANCH: master
Ran 29 Aug 2017 06:14PM UTC
Jobs 1
Files 17
Run time 5min
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
357

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

140 of 140 new or added lines in 5 files covered. (100.0%)

1051 of 1148 relevant lines covered (91.55%)

100.53 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
100.0
enforcer.go
6
100.0
rbac/default_role_manager.go
Jobs
ID Job ID Ran Files Coverage
1 357.1 29 Aug 2017 06:14PM UTC 0
91.55
Travis Job 357.1
Source Files on build 357
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #357
  • 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