-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(classification): backport Ruby and C# test cases and KPIs (#101)
* feat: add testhelper for KPI tests and snapshots feat: add ruby test case * feat: skip detections with blank object name * feat: include all lang types in CSV to JSON script * fix: check for DB identifiers when dealing with unknown object * feat: prefer map for properties * chore: neaten up testhelper * refactor: separate test files * fix: ruby reputation classification state
- Loading branch information
Showing
29 changed files
with
80,817 additions
and
3 deletions.
There are no files selected for viewing
15,995 changes: 15,995 additions & 0 deletions
15,995
pkg/classification/schema/.snapshots/TestCSharp
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
(testhelper.KPI) { | ||
DetectionsCount: (int) 3346, | ||
ValidDetectionsCount: (int) 381, | ||
ValidObjectDetectionsCount: (int) 58, | ||
ValidFieldDetectionsCount: (int) 323, | ||
ExpectedValidDetectionsCount: (int) 381, | ||
ExpectedValidObjectDetectionsCount: (int) 58, | ||
ExpectedValidFieldDetectionsCount: (int) 323, | ||
ExpectedTruePositivesCount: (int) 379, | ||
ExpectedFalsePositivesCount: (int) 2 | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
(testhelper.KPI) { | ||
DetectionsCount: (int) 452, | ||
ValidDetectionsCount: (int) 117, | ||
ValidObjectDetectionsCount: (int) 31, | ||
ValidFieldDetectionsCount: (int) 86, | ||
ExpectedValidDetectionsCount: (int) 125, | ||
ExpectedValidObjectDetectionsCount: (int) 36, | ||
ExpectedValidFieldDetectionsCount: (int) 89, | ||
ExpectedTruePositivesCount: (int) 125, | ||
ExpectedFalsePositivesCount: (int) 0 | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
(testhelper.KPI) { | ||
DetectionsCount: (int) 6230, | ||
ValidDetectionsCount: (int) 135, | ||
ValidObjectDetectionsCount: (int) 37, | ||
ValidFieldDetectionsCount: (int) 98, | ||
ExpectedValidDetectionsCount: (int) 137, | ||
ExpectedValidObjectDetectionsCount: (int) 37, | ||
ExpectedValidFieldDetectionsCount: (int) 100, | ||
ExpectedTruePositivesCount: (int) 136, | ||
ExpectedFalsePositivesCount: (int) 1 | ||
} |
1,968 changes: 1,968 additions & 0 deletions
1,968
pkg/classification/schema/.snapshots/TestJavascript
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
(testhelper.KPI) { | ||
DetectionsCount: (int) 445, | ||
ValidDetectionsCount: (int) 127, | ||
ValidObjectDetectionsCount: (int) 39, | ||
ValidFieldDetectionsCount: (int) 88, | ||
ExpectedValidDetectionsCount: (int) 135, | ||
ExpectedValidObjectDetectionsCount: (int) 46, | ||
ExpectedValidFieldDetectionsCount: (int) 89, | ||
ExpectedTruePositivesCount: (int) 135, | ||
ExpectedFalsePositivesCount: (int) 0 | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
(testhelper.KPI) { | ||
DetectionsCount: (int) 353, | ||
ValidDetectionsCount: (int) 129, | ||
ValidObjectDetectionsCount: (int) 30, | ||
ValidFieldDetectionsCount: (int) 99, | ||
ExpectedValidDetectionsCount: (int) 143, | ||
ExpectedValidObjectDetectionsCount: (int) 33, | ||
ExpectedValidFieldDetectionsCount: (int) 110, | ||
ExpectedTruePositivesCount: (int) 143, | ||
ExpectedFalsePositivesCount: (int) 0 | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
(testhelper.KPI) { | ||
DetectionsCount: (int) 220, | ||
ValidDetectionsCount: (int) 115, | ||
ValidObjectDetectionsCount: (int) 21, | ||
ValidFieldDetectionsCount: (int) 94, | ||
ExpectedValidDetectionsCount: (int) 121, | ||
ExpectedValidObjectDetectionsCount: (int) 24, | ||
ExpectedValidFieldDetectionsCount: (int) 97, | ||
ExpectedTruePositivesCount: (int) 121, | ||
ExpectedFalsePositivesCount: (int) 0 | ||
} |
Oops, something went wrong.