Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modified capabilities check to be more restrictive #440

Merged
merged 3 commits into from
Nov 6, 2019
Merged

Conversation

kristinapathak
Copy link
Contributor

fixes part of #62

@codecov-io
Copy link

codecov-io commented Nov 4, 2019

Codecov Report

Merging #440 into master will increase coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #440      +/-   ##
==========================================
+ Coverage    86.8%   86.83%   +0.02%     
==========================================
  Files         187      187              
  Lines        8201     8201              
==========================================
+ Hits         7119     7121       +2     
+ Misses        881      880       -1     
+ Partials      201      200       -1
Impacted Files Coverage Δ
basculechecks/basculechecks.go 100% <100%> (+7.14%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a05ca6d...f6dee11. Read the comment docs.

@JC000
Copy link

JC000 commented Nov 5, 2019

Looks OK to me other than the unit test failure.


func CreateValidCapabilityCheck(config CapabilityConfig) func(context.Context, []interface{}) error {
func CreateValidCapabilityCheck(prefix string, acceptAllMethod string) func(context.Context, []interface{}) error {
matchPrefix := regexp.MustCompile("^" + prefix + "(.+):(.+?)$")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be error checked, or some modification/validation should happen to prefix

@kcajmagic kcajmagic merged commit 77d97b1 into master Nov 6, 2019
@kcajmagic kcajmagic deleted the basculechecks branch November 6, 2019 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants