Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: laurentsimon <[email protected]>
  • Loading branch information
laurentsimon committed Jan 30, 2023
1 parent af8a7f0 commit ca0a1e0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions finding/finding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ func Test_New(t *testing.T) {
},
{
name: "env variables",
id: "testdata/env-variables",
id: "testdata/metadata-variables",
outcome: &negativeOutcome,
metadata: map[string]string{"branch": "master", "repo": "ossf/scorecard"},
finding: &Finding{
Rule: "testdata/env-variables",
Rule: "testdata/metadata-variables",
Outcome: OutcomeNegative,
Risk: rule.RiskHigh,
Remediation: &rule.Remediation{
Expand All @@ -112,11 +112,11 @@ func Test_New(t *testing.T) {
},
{
name: "patch",
id: "testdata/env-variables",
id: "testdata/metadata-variables",
outcome: &negativeOutcome,
metadata: map[string]string{"branch": "master", "repo": "ossf/scorecard"},
finding: &Finding{
Rule: "testdata/env-variables",
Rule: "testdata/metadata-variables",
Outcome: OutcomeNegative,
Risk: rule.RiskHigh,
Remediation: &rule.Remediation{
Expand All @@ -129,11 +129,11 @@ func Test_New(t *testing.T) {
},
{
name: "location",
id: "testdata/env-variables",
id: "testdata/metadata-variables",
outcome: &negativeOutcome,
metadata: map[string]string{"branch": "master", "repo": "ossf/scorecard"},
finding: &Finding{
Rule: "testdata/env-variables",
Rule: "testdata/metadata-variables",
Outcome: OutcomeNegative,
Risk: rule.RiskHigh,
Remediation: &rule.Remediation{
Expand All @@ -152,11 +152,11 @@ func Test_New(t *testing.T) {
},
{
name: "text",
id: "testdata/env-variables",
id: "testdata/metadata-variables",
outcome: &negativeOutcome,
metadata: map[string]string{"branch": "master", "repo": "ossf/scorecard"},
finding: &Finding{
Rule: "testdata/env-variables",
Rule: "testdata/metadata-variables",
Outcome: OutcomeNegative,
Risk: rule.RiskHigh,
Remediation: &rule.Remediation{
Expand All @@ -169,10 +169,10 @@ func Test_New(t *testing.T) {
},
{
name: "outcome",
id: "testdata/env-variables",
id: "testdata/metadata-variables",
outcome: &positiveOutcome,
finding: &Finding{
Rule: "testdata/env-variables",
Rule: "testdata/metadata-variables",
Outcome: OutcomePositive,
Risk: rule.RiskHigh,
Message: "some text",
Expand Down
File renamed without changes.

0 comments on commit ca0a1e0

Please sign in to comment.