Request.java

1
package org.cardanofoundation.explorer.api.interceptor.auth;
2
3
import lombok.AccessLevel;
4
import lombok.Builder;
5
import lombok.Data;
6
import lombok.experimental.FieldDefaults;
7
8
import com.fasterxml.jackson.annotation.JsonProperty;
9
10 29 1. equals : negated conditional → NO_COVERAGE
2. hashCode : negated conditional → NO_COVERAGE
3. hashCode : Replaced integer multiplication with division → NO_COVERAGE
4. canEqual : replaced boolean return with false for org/cardanofoundation/explorer/api/interceptor/auth/Request::canEqual → NO_COVERAGE
5. equals : negated conditional → NO_COVERAGE
6. hashCode : Replaced integer multiplication with division → NO_COVERAGE
7. canEqual : replaced boolean return with true for org/cardanofoundation/explorer/api/interceptor/auth/Request::canEqual → NO_COVERAGE
8. equals : negated conditional → NO_COVERAGE
9. equals : replaced boolean return with false for org/cardanofoundation/explorer/api/interceptor/auth/Request::equals → NO_COVERAGE
10. equals : negated conditional → NO_COVERAGE
11. hashCode : Replaced integer addition with subtraction → NO_COVERAGE
12. hashCode : replaced int return with 0 for org/cardanofoundation/explorer/api/interceptor/auth/Request::hashCode → NO_COVERAGE
13. equals : negated conditional → NO_COVERAGE
14. equals : negated conditional → NO_COVERAGE
15. hashCode : Replaced integer multiplication with division → NO_COVERAGE
16. equals : negated conditional → NO_COVERAGE
17. equals : replaced boolean return with true for org/cardanofoundation/explorer/api/interceptor/auth/Request::equals → NO_COVERAGE
18. hashCode : Replaced integer addition with subtraction → NO_COVERAGE
19. equals : replaced boolean return with false for org/cardanofoundation/explorer/api/interceptor/auth/Request::equals → NO_COVERAGE
20. equals : replaced boolean return with true for org/cardanofoundation/explorer/api/interceptor/auth/Request::equals → NO_COVERAGE
21. equals : negated conditional → NO_COVERAGE
22. equals : negated conditional → NO_COVERAGE
23. equals : replaced boolean return with true for org/cardanofoundation/explorer/api/interceptor/auth/Request::equals → NO_COVERAGE
24. hashCode : Replaced integer addition with subtraction → NO_COVERAGE
25. equals : negated conditional → NO_COVERAGE
26. equals : replaced boolean return with true for org/cardanofoundation/explorer/api/interceptor/auth/Request::equals → NO_COVERAGE
27. equals : replaced boolean return with true for org/cardanofoundation/explorer/api/interceptor/auth/Request::equals → NO_COVERAGE
28. toString : replaced return value with "" for org/cardanofoundation/explorer/api/interceptor/auth/Request::toString → NO_COVERAGE
29. hashCode : negated conditional → NO_COVERAGE
@Data
11
@FieldDefaults(level = AccessLevel.PRIVATE)
12 6 1. builder : replaced return value with null for org/cardanofoundation/explorer/api/interceptor/auth/Request::builder → NO_COVERAGE
2. toString : replaced return value with "" for org/cardanofoundation/explorer/api/interceptor/auth/Request$RequestBuilder::toString → NO_COVERAGE
3. method : replaced return value with null for org/cardanofoundation/explorer/api/interceptor/auth/Request$RequestBuilder::method → NO_COVERAGE
4. build : replaced return value with null for org/cardanofoundation/explorer/api/interceptor/auth/Request$RequestBuilder::build → NO_COVERAGE
5. roles : replaced return value with null for org/cardanofoundation/explorer/api/interceptor/auth/Request$RequestBuilder::roles → NO_COVERAGE
6. uri : replaced return value with null for org/cardanofoundation/explorer/api/interceptor/auth/Request$RequestBuilder::uri → NO_COVERAGE
@Builder
13
public class Request {
14
  @JsonProperty("uri")
15 1 1. getUri : replaced return value with "" for org/cardanofoundation/explorer/api/interceptor/auth/Request::getUri → NO_COVERAGE
  String uri;
16
17
  @JsonProperty("method")
18 1 1. getMethod : replaced return value with "" for org/cardanofoundation/explorer/api/interceptor/auth/Request::getMethod → NO_COVERAGE
  String method;
19
20
  @JsonProperty("roles")
21 1 1. getRoles : replaced return value with null for org/cardanofoundation/explorer/api/interceptor/auth/Request::getRoles → NO_COVERAGE
  String[] roles;
22
23
  public Request(
24
      @JsonProperty("uri") String uri,
25
      @JsonProperty("method") String method,
26
      @JsonProperty("roles") String[] roles) {
27
    this.uri = uri;
28
    this.method = method;
29
    this.roles = roles;
30
  }
31
}

Mutations

10

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

12

1.1
Location : builder
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/interceptor/auth/Request::builder → NO_COVERAGE

2.2
Location : toString
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/interceptor/auth/Request$RequestBuilder::toString → NO_COVERAGE

3.3
Location : method
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/interceptor/auth/Request$RequestBuilder::method → NO_COVERAGE

4.4
Location : build
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/interceptor/auth/Request$RequestBuilder::build → NO_COVERAGE

5.5
Location : roles
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/interceptor/auth/Request$RequestBuilder::roles → NO_COVERAGE

6.6
Location : uri
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/interceptor/auth/Request$RequestBuilder::uri → NO_COVERAGE

15

1.1
Location : getUri
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/interceptor/auth/Request::getUri → NO_COVERAGE

18

1.1
Location : getMethod
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/interceptor/auth/Request::getMethod → NO_COVERAGE

21

1.1
Location : getRoles
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/interceptor/auth/Request::getRoles → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.14.2