MCPcopy Index your code
hub / github.com/OWASP/wrongsecrets / ScoreCard

Interface ScoreCard

src/main/java/org/owasp/wrongsecrets/ScoreCard.java:6–43  ·  view source on GitHub ↗

Interface of a scorecard where a player's progress is stored into.

Source from the content-addressed store, hash-verified

4
5/** Interface of a scorecard where a player's progress is stored into. */
6public interface ScoreCard {
7
8 /**
9 * Marks a challenge as completed.
10 *
11 * @param challenge Challenge object which is completed
12 */
13 void completeChallenge(ChallengeDefinition challenge);
14
15 /**
16 * Checks if the given challenge is marked as completed in the scorecard.
17 *
18 * @param challenge Challenge object tested for completion
19 * @return true if challenge solved correctly
20 */
21 boolean getChallengeCompleted(ChallengeDefinition challenge);
22
23 /**
24 * Gives a 0-100 implementation completeness score.
25 *
26 * @return float with completeness percentage
27 */
28 float getProgress();
29
30 /**
31 * Gives total number of received points.
32 *
33 * @return int with points
34 */
35 int getTotalReceivedPoints();
36
37 /**
38 * Resets the status of a given challenge its entry in the score-card.
39 *
40 * @param challenge challenge of which the status should be reset.
41 */
42 void reset(ChallengeDefinition challenge);
43}

Callers 10

postControllerMethod · 0.65
challengeCompletedMethod · 0.65
getChallengesMethod · 0.65
includeScoringStatusMethod · 0.65
challengeNotCompletedMethod · 0.65
includeScoringStatusMethod · 0.65
indexMethod · 0.65
includeScoringStatusMethod · 0.65
resetMethod · 0.65

Implementers 1

InMemoryScoreCardsrc/main/java/org/owasp/wrongsecrets/I

Calls

no outgoing calls

Tested by

no test coverage detected