PotsController.java

1
package org.cardanofoundation.explorer.api.controller;
2
3
import lombok.RequiredArgsConstructor;
4
5
import org.springframework.http.ResponseEntity;
6
import org.springframework.web.bind.annotation.GetMapping;
7
import org.springframework.web.bind.annotation.RequestMapping;
8
import org.springframework.web.bind.annotation.RestController;
9
10
import io.swagger.v3.oas.annotations.Operation;
11
import io.swagger.v3.oas.annotations.tags.Tag;
12
13
import org.cardanofoundation.explorer.api.config.LogMessage;
14
import org.cardanofoundation.explorer.api.model.response.PotsOverviewResponse;
15
import org.cardanofoundation.explorer.api.service.PotsService;
16
17
@RestController
18
@RequestMapping("/api/v1/pots")
19
@RequiredArgsConstructor
20
@Tag(name = "pots", description = "Ada token pots information")
21
public class PotsController {
22
23
  private final PotsService potsService;
24
25
  @GetMapping("/overview")
26
  @LogMessage
27
  @Operation(
28
      summary = "Get Pots Overview",
29
      description = "returns the ADA token pots overview",
30
      tags = {"pots"})
31
  public ResponseEntity<PotsOverviewResponse> getPotsOverview() {
32 1 1. getPotsOverview : replaced return value with null for org/cardanofoundation/explorer/api/controller/PotsController::getPotsOverview → KILLED
    return ResponseEntity.ok(potsService.getPotsOverview());
33
  }
34
}

Mutations

32

1.1
Location : getPotsOverview
Killed by : org.cardanofoundation.explorer.api.controller.PotsControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.PotsControllerTest]/[method:testGetPotsOverview()]
replaced return value with null for org/cardanofoundation/explorer/api/controller/PotsController::getPotsOverview → KILLED

Active mutators

Tests examined


Report generated by PIT 1.14.2