UserPrincipal.java

1
package org.cardanofoundation.explorer.api.interceptor.auth;
2
3
import java.util.Map;
4
5
import lombok.AllArgsConstructor;
6
import lombok.Builder;
7
import lombok.Data;
8
import lombok.NoArgsConstructor;
9
10 25 1. hashCode : Replaced integer multiplication with division → NO_COVERAGE
2. equals : negated conditional → NO_COVERAGE
3. equals : negated conditional → NO_COVERAGE
4. equals : replaced boolean return with false for org/cardanofoundation/explorer/api/interceptor/auth/UserPrincipal::equals → NO_COVERAGE
5. hashCode : negated conditional → NO_COVERAGE
6. equals : replaced boolean return with true for org/cardanofoundation/explorer/api/interceptor/auth/UserPrincipal::equals → NO_COVERAGE
7. equals : replaced boolean return with true for org/cardanofoundation/explorer/api/interceptor/auth/UserPrincipal::equals → NO_COVERAGE
8. hashCode : Replaced integer addition with subtraction → NO_COVERAGE
9. equals : replaced boolean return with true for org/cardanofoundation/explorer/api/interceptor/auth/UserPrincipal::equals → NO_COVERAGE
10. toString : replaced return value with "" for org/cardanofoundation/explorer/api/interceptor/auth/UserPrincipal::toString → NO_COVERAGE
11. equals : negated conditional → NO_COVERAGE
12. hashCode : negated conditional → NO_COVERAGE
13. hashCode : replaced int return with 0 for org/cardanofoundation/explorer/api/interceptor/auth/UserPrincipal::hashCode → NO_COVERAGE
14. equals : negated conditional → NO_COVERAGE
15. equals : replaced boolean return with true for org/cardanofoundation/explorer/api/interceptor/auth/UserPrincipal::equals → NO_COVERAGE
16. hashCode : Replaced integer addition with subtraction → NO_COVERAGE
17. equals : replaced boolean return with false for org/cardanofoundation/explorer/api/interceptor/auth/UserPrincipal::equals → NO_COVERAGE
18. equals : negated conditional → NO_COVERAGE
19. canEqual : replaced boolean return with false for org/cardanofoundation/explorer/api/interceptor/auth/UserPrincipal::canEqual → NO_COVERAGE
20. equals : negated conditional → NO_COVERAGE
21. hashCode : Replaced integer multiplication with division → NO_COVERAGE
22. canEqual : replaced boolean return with true for org/cardanofoundation/explorer/api/interceptor/auth/UserPrincipal::canEqual → NO_COVERAGE
23. equals : negated conditional → NO_COVERAGE
24. equals : negated conditional → NO_COVERAGE
25. equals : negated conditional → NO_COVERAGE
@Data
11 5 1. toString : replaced return value with "" for org/cardanofoundation/explorer/api/interceptor/auth/UserPrincipal$UserPrincipalBuilder::toString → NO_COVERAGE
2. builder : replaced return value with null for org/cardanofoundation/explorer/api/interceptor/auth/UserPrincipal::builder → KILLED
3. roleDescription : replaced return value with null for org/cardanofoundation/explorer/api/interceptor/auth/UserPrincipal$UserPrincipalBuilder::roleDescription → KILLED
4. username : replaced return value with null for org/cardanofoundation/explorer/api/interceptor/auth/UserPrincipal$UserPrincipalBuilder::username → KILLED
5. build : replaced return value with null for org/cardanofoundation/explorer/api/interceptor/auth/UserPrincipal$UserPrincipalBuilder::build → KILLED
@Builder
12
@NoArgsConstructor
13
@AllArgsConstructor
14
public class UserPrincipal {
15 1 1. getRoleDescription : replaced return value with Collections.emptyMap for org/cardanofoundation/explorer/api/interceptor/auth/UserPrincipal::getRoleDescription → SURVIVED
  Map<String, Map<String, Object>> roleDescription;
16 1 1. getUsername : replaced return value with "" for org/cardanofoundation/explorer/api/interceptor/auth/UserPrincipal::getUsername → KILLED
  String username;
17
}

Mutations

10

1.1
Location : hashCode
Killed by : none
Replaced integer multiplication with division → NO_COVERAGE

2.2
Location : equals
Killed by : none
negated conditional → NO_COVERAGE

3.3
Location : equals
Killed by : none
negated conditional → NO_COVERAGE

4.4
Location : equals
Killed by : none
replaced boolean return with false for org/cardanofoundation/explorer/api/interceptor/auth/UserPrincipal::equals → NO_COVERAGE

5.5
Location : hashCode
Killed by : none
negated conditional → NO_COVERAGE

6.6
Location : equals
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/interceptor/auth/UserPrincipal::equals → NO_COVERAGE

7.7
Location : equals
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/interceptor/auth/UserPrincipal::equals → NO_COVERAGE

8.8
Location : hashCode
Killed by : none
Replaced integer addition with subtraction → NO_COVERAGE

9.9
Location : equals
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/interceptor/auth/UserPrincipal::equals → NO_COVERAGE

10.10
Location : toString
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/interceptor/auth/UserPrincipal::toString → NO_COVERAGE

11.11
Location : equals
Killed by : none
negated conditional → NO_COVERAGE

12.12
Location : hashCode
Killed by : none
negated conditional → NO_COVERAGE

13.13
Location : hashCode
Killed by : none
replaced int return with 0 for org/cardanofoundation/explorer/api/interceptor/auth/UserPrincipal::hashCode → NO_COVERAGE

14.14
Location : equals
Killed by : none
negated conditional → NO_COVERAGE

15.15
Location : equals
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/interceptor/auth/UserPrincipal::equals → NO_COVERAGE

16.16
Location : hashCode
Killed by : none
Replaced integer addition with subtraction → NO_COVERAGE

17.17
Location : equals
Killed by : none
replaced boolean return with false for org/cardanofoundation/explorer/api/interceptor/auth/UserPrincipal::equals → NO_COVERAGE

18.18
Location : equals
Killed by : none
negated conditional → NO_COVERAGE

19.19
Location : canEqual
Killed by : none
replaced boolean return with false for org/cardanofoundation/explorer/api/interceptor/auth/UserPrincipal::canEqual → NO_COVERAGE

20.20
Location : equals
Killed by : none
negated conditional → NO_COVERAGE

21.21
Location : hashCode
Killed by : none
Replaced integer multiplication with division → NO_COVERAGE

22.22
Location : canEqual
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/interceptor/auth/UserPrincipal::canEqual → NO_COVERAGE

23.23
Location : equals
Killed by : none
negated conditional → NO_COVERAGE

24.24
Location : equals
Killed by : none
negated conditional → NO_COVERAGE

25.25
Location : equals
Killed by : none
negated conditional → NO_COVERAGE

11

1.1
Location : builder
Killed by : org.cardanofoundation.explorer.api.service.StakeKeyReportServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.StakeKeyReportServiceTest]/[method:generateStakeKeyReport_shouldThrowExceptionWhenNotFoundStakeAdress()]
replaced return value with null for org/cardanofoundation/explorer/api/interceptor/auth/UserPrincipal::builder → KILLED

2.2
Location : roleDescription
Killed by : org.cardanofoundation.explorer.api.service.ReportHistoryServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.ReportHistoryServiceTest]/[method:getReportLimitPer24Hours_shouldReturnLimit()]
replaced return value with null for org/cardanofoundation/explorer/api/interceptor/auth/UserPrincipal$UserPrincipalBuilder::roleDescription → KILLED

3.3
Location : username
Killed by : org.cardanofoundation.explorer.api.service.StakeKeyReportServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.StakeKeyReportServiceTest]/[method:generateStakeKeyReport_shouldThrowExceptionWhenNotFoundStakeAdress()]
replaced return value with null for org/cardanofoundation/explorer/api/interceptor/auth/UserPrincipal$UserPrincipalBuilder::username → KILLED

4.4
Location : toString
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/interceptor/auth/UserPrincipal$UserPrincipalBuilder::toString → NO_COVERAGE

5.5
Location : build
Killed by : org.cardanofoundation.explorer.api.service.ReportHistoryServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.ReportHistoryServiceTest]/[method:getReportLimitPer24Hours_shouldReturnLimit()]
replaced return value with null for org/cardanofoundation/explorer/api/interceptor/auth/UserPrincipal$UserPrincipalBuilder::build → KILLED

15

1.1
Location : getRoleDescription
Killed by : none
replaced return value with Collections.emptyMap for org/cardanofoundation/explorer/api/interceptor/auth/UserPrincipal::getRoleDescription → SURVIVED

16

1.1
Location : getUsername
Killed by : org.cardanofoundation.explorer.api.service.PoolReportServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.PoolReportServiceTest]/[method:creat_shouldThrowExceptionWhenLimitReached()]
replaced return value with "" for org/cardanofoundation/explorer/api/interceptor/auth/UserPrincipal::getUsername → KILLED

Active mutators

Tests examined


Report generated by PIT 1.14.2