| Line |
Stmt Id |
Pos |
Tree |
Symbol |
Tests |
Code |
|
34
|
124
|
1063
-
1064
|
Literal
|
<nosymbol>
|
org.make.api.technical.auth.defaulttokengeneratorcomponenttest
|
3
|
|
48
|
15
|
1537
-
1584
|
Apply
|
java.lang.String.toUpperCase
|
org.make.api.technical.auth.defaulttokengeneratorcomponenttest
|
org.make.api.technical.security.SecurityHelper.defaultHash(token).toUpperCase()
|
|
55
|
222
|
1811
-
1821
|
Apply
|
scala.Int.<=
|
org.make.api.technical.auth.defaulttokengeneratorcomponenttest
|
depth.<=(0)
|
|
56
|
32
|
1833
-
1923
|
Apply
|
scala.concurrent.Future.failed
|
|
scala.concurrent.Future.failed[Nothing](new scala.`package`.RuntimeException("Token generation failed due to max retries reached."))
|
|
56
|
234
|
1833
-
1923
|
Block
|
scala.concurrent.Future.failed
|
|
scala.concurrent.Future.failed[Nothing](new scala.`package`.RuntimeException("Token generation failed due to max retries reached."))
|
|
56
|
93
|
1847
-
1922
|
Apply
|
java.lang.RuntimeException.<init>
|
|
new scala.`package`.RuntimeException("Token generation failed due to max retries reached.")
|
|
57
|
311
|
1937
-
2252
|
Block
|
<nosymbol>
|
org.make.api.technical.auth.defaulttokengeneratorcomponenttest
|
{
<synthetic> <artifact> private[this] val x$1: (String, String) = (DefaultTokenGenerator.this.newRandomToken(): (String, String)) match {
case (_1: String, _2: String): (String, String)((token @ _), (hashedToken @ _)) => scala.Tuple2.apply[String, String](token, hashedToken)
};
val token: String = x$1._1;
val hashedToken: String = x$1._2;
tokenExistsFunction.apply(hashedToken).flatMap[(String, String)](((exists: Boolean) => if (exists)
DefaultTokenGenerator.this.generateToken(tokenExistsFunction, depth.-(1))
else
scala.concurrent.Future.successful[(String, String)](scala.Tuple2.apply[String, String](token, hashedToken))))(scala.concurrent.ExecutionContext.Implicits.global)
}
|
|
58
|
116
|
1952
-
1952
|
Select
|
scala.Tuple2._1
|
org.make.api.technical.auth.defaulttokengeneratorcomponenttest
|
x$1._1
|
|
58
|
316
|
1959
-
1959
|
Select
|
scala.Tuple2._2
|
org.make.api.technical.auth.defaulttokengeneratorcomponenttest
|
x$1._2
|
|
59
|
235
|
2058
-
2058
|
Select
|
scala.concurrent.ExecutionContext.Implicits.global
|
org.make.api.technical.auth.defaulttokengeneratorcomponenttest
|
scala.concurrent.ExecutionContext.Implicits.global
|
|
59
|
117
|
2017
-
2244
|
ApplyToImplicitArgs
|
scala.concurrent.Future.flatMap
|
org.make.api.technical.auth.defaulttokengeneratorcomponenttest
|
tokenExistsFunction.apply(hashedToken).flatMap[(String, String)](((exists: Boolean) => if (exists)
DefaultTokenGenerator.this.generateToken(tokenExistsFunction, depth.-(1))
else
scala.concurrent.Future.successful[(String, String)](scala.Tuple2.apply[String, String](token, hashedToken))))(scala.concurrent.ExecutionContext.Implicits.global)
|
|
61
|
8
|
2106
-
2151
|
Block
|
org.make.api.technical.auth.DefaultTokenGeneratorComponent.DefaultTokenGenerator.generateToken
|
|
DefaultTokenGenerator.this.generateToken(tokenExistsFunction, depth.-(1))
|
|
61
|
125
|
2106
-
2151
|
Apply
|
org.make.api.technical.auth.DefaultTokenGeneratorComponent.DefaultTokenGenerator.generateToken
|
|
DefaultTokenGenerator.this.generateToken(tokenExistsFunction, depth.-(1))
|
|
61
|
253
|
2141
-
2150
|
Apply
|
scala.Int.-
|
|
depth.-(1)
|
|
63
|
88
|
2183
-
2222
|
Apply
|
scala.concurrent.Future.successful
|
|
scala.concurrent.Future.successful[(String, String)](scala.Tuple2.apply[String, String](token, hashedToken))
|
|
63
|
210
|
2201
-
2221
|
Apply
|
scala.Tuple2.apply
|
|
scala.Tuple2.apply[String, String](token, hashedToken)
|
|
63
|
27
|
2183
-
2222
|
Block
|
scala.concurrent.Future.successful
|
|
scala.concurrent.Future.successful[(String, String)](scala.Tuple2.apply[String, String](token, hashedToken))
|
|
70
|
191
|
2334
-
2360
|
Apply
|
java.util.UUID.toString
|
org.make.api.technical.auth.defaulttokengeneratorcomponenttest
|
java.util.UUID.randomUUID().toString()
|
|
72
|
10
|
2368
-
2395
|
Apply
|
scala.Tuple2.apply
|
org.make.api.technical.auth.defaulttokengeneratorcomponenttest
|
scala.Tuple2.apply[String, String](token, DefaultTokenGenerator.this.tokenToHash(token))
|
|
72
|
123
|
2376
-
2394
|
Apply
|
org.make.api.technical.auth.DefaultTokenGeneratorComponent.DefaultTokenGenerator.tokenToHash
|
org.make.api.technical.auth.defaulttokengeneratorcomponenttest
|
DefaultTokenGenerator.this.tokenToHash(token)
|