@@ -12,16 +12,21 @@ Author: Diffblue Ltd.
12
12
SCENARIO (" is_clinit_function" , " [core][java_static_initializers]" )
13
13
{
14
14
GIVEN (" A function id that represents a clinit" )
15
- THEN (" is_clinit_function should return true." )
16
15
{
17
- const std::string input = " com.something.package.TestClass.<clinit>:()V" ;
18
- REQUIRE (is_clinit_function (input));
16
+ THEN (" is_clinit_function should return true." )
17
+ {
18
+ const std::string input = " com.something.package.TestClass.<clinit>:()V" ;
19
+ REQUIRE (is_clinit_function (input));
20
+ }
19
21
}
20
22
GIVEN (" A function id that does not represent a clinit" )
21
- THEN (" is_clinit_function should return false." )
22
23
{
23
- const std::string input = " com.something.package.TestClass.<notclinit>:()V" ;
24
- REQUIRE_FALSE (is_clinit_function (input));
24
+ THEN (" is_clinit_function should return false." )
25
+ {
26
+ const std::string input =
27
+ " com.something.package.TestClass.<notclinit>:()V" ;
28
+ REQUIRE_FALSE (is_clinit_function (input));
29
+ }
25
30
}
26
31
}
27
32
@@ -30,16 +35,20 @@ SCENARIO(
30
35
" [core][java_static_initializers]" )
31
36
{
32
37
GIVEN (" A function id that represents a user-specified clinit" )
33
- THEN (" is_user_specified_clinit_function should return true." )
34
38
{
35
- const std::string input =
36
- " com.something.package.TestClass::user_specified_clinit" ;
37
- REQUIRE (is_user_specified_clinit_function (input));
39
+ THEN (" is_user_specified_clinit_function should return true." )
40
+ {
41
+ const std::string input =
42
+ " com.something.package.TestClass::user_specified_clinit" ;
43
+ REQUIRE (is_user_specified_clinit_function (input));
44
+ }
38
45
}
39
46
GIVEN (" A function id that does not represent a user-specified clinit" )
40
- THEN (" is_clinit_function should return false." )
41
47
{
42
- const std::string input = " com.something.package.TestClass::not_it" ;
43
- REQUIRE_FALSE (is_user_specified_clinit_function (input));
48
+ THEN (" is_clinit_function should return false." )
49
+ {
50
+ const std::string input = " com.something.package.TestClass::not_it" ;
51
+ REQUIRE_FALSE (is_user_specified_clinit_function (input));
52
+ }
44
53
}
45
54
}
0 commit comments