• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

DataBiosphere / consent / #5928

19 May 2025 12:15PM UTC coverage: 78.727% (-0.06%) from 78.785%
#5928

push

web-flow
DT-1660: Remove LC institution and era commons values (#2526)

20 of 22 new or added lines in 5 files covered. (90.91%)

3 existing lines in 3 files now uncovered.

10003 of 12706 relevant lines covered (78.73%)

0.79 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

80.0
/src/main/java/org/broadinstitute/consent/http/db/mapper/LibraryCardReducer.java
1
package org.broadinstitute.consent.http.db.mapper;
2

3
import java.util.Map;
4
import org.broadinstitute.consent.http.models.LibraryCard;
5
import org.jdbi.v3.core.mapper.MappingException;
6
import org.jdbi.v3.core.result.LinkedHashMapRowReducer;
7
import org.jdbi.v3.core.result.RowView;
8

9
public class LibraryCardReducer implements LinkedHashMapRowReducer<Integer, LibraryCard>,
1✔
10
    RowMapperHelper {
11

12
  @Override
13
  public void accumulate(Map<Integer, LibraryCard> map, RowView rowView) {
14
    LibraryCard card = map.computeIfAbsent(
1✔
15
        rowView.getColumn("id", Integer.class),
1✔
16
        id -> rowView.getRow(LibraryCard.class));
1✔
17
    try {
18
      if (hasNonZeroColumn(rowView,"daa_id")) {
1✔
19
        card.addDaa(rowView.getColumn("daa_id", Integer.class));
1✔
20
      }
UNCOV
21
    } catch (MappingException e) {
×
NEW
22
      logWarn("Error adding DAA to Library Card", e);
×
23
    }
1✔
24
  }
1✔
25
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc