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

pkiraly / metadata-qa-marc / #1527

22 Aug 2025 02:21PM UTC coverage: 90.345%. Remained the same
#1527

push

pkiraly
Improve timeline handling

5191 of 6416 new or added lines in 219 files covered. (80.91%)

886 existing lines in 78 files now uncovered.

36717 of 40641 relevant lines covered (90.34%)

0.9 hits per line

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

76.47
/src/main/java/de/gwdg/metadataqa/marc/datastore/MarcSQLiteClient.java
1
package de.gwdg.metadataqa.marc.datastore;
2

3
import org.sqlite.SQLiteConfig;
4

5
import java.sql.Connection;
6
import java.sql.DriverManager;
7
import java.sql.SQLException;
8
import java.util.logging.Logger;
9

10
public class MarcSQLiteClient {
1✔
11

12
  private static final Logger logger = Logger.getLogger(MarcSQLiteClient.class.getCanonicalName());
1✔
13

14
  Connection conn = null;
1✔
15

16
  public void connect(String path) {
17
    try {
18
      String url = "jdbc:sqlite:" + path;
1✔
19
      SQLiteConfig config = new SQLiteConfig();
1✔
20
      config.enforceForeignKeys(true);
1✔
21
      conn = DriverManager.getConnection(url, config.toProperties());
1✔
22
    } catch (SQLException e) {
×
23
      logger.warning(e.getMessage());
×
24
    }
1✔
25
  }
1✔
26

27
  public void close() {
28
    if (conn != null) {
1✔
29
      try {
30
        conn.close();
1✔
NEW
31
      } catch (SQLException e) {
×
NEW
32
        throw new RuntimeException(e);
×
33
      }
1✔
34
    }
35
  }
1✔
36
}
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