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

knowledgepixels / nanodash / 17837235071

18 Sep 2025 05:58PM UTC coverage: 13.87%. Remained the same
17837235071

push

github

tkuhn
chore: Remove serialVersionUIDs

443 of 4022 branches covered (11.01%)

Branch coverage included in aggregate %.

1133 of 7341 relevant lines covered (15.43%)

0.68 hits per line

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

0.0
src/main/java/com/knowledgepixels/nanodash/component/ProfileSigItem.java
1
package com.knowledgepixels.nanodash.component;
2

3
import com.knowledgepixels.nanodash.NanodashPreferences;
4
import com.knowledgepixels.nanodash.NanodashSession;
5
import org.apache.wicket.markup.html.WebMarkupContainer;
6
import org.apache.wicket.markup.html.basic.Label;
7
import org.apache.wicket.markup.html.panel.Panel;
8

9
/**
10
 * A panel that displays the public key and local key file information for the user's profile.
11
 */
12
public class ProfileSigItem extends Panel {
13

14
    /**
15
     * Constructs a ProfileSigItem panel.
16
     *
17
     * @param id the Wicket component ID
18
     */
19
    public ProfileSigItem(String id) {
20
        super(id);
×
21
        boolean loginMode = NanodashPreferences.get().isOrcidLoginMode();
×
22

23
        final NanodashSession session = NanodashSession.get();
×
24

25
        WebMarkupContainer localFilePanel = new WebMarkupContainer("localfile");
×
26
        if (loginMode) {
×
27
            localFilePanel.add(new Label("keyfile", ""));
×
28
            localFilePanel.setVisible(false);
×
29
        } else {
30
            localFilePanel.add(new Label("keyfile", session.getKeyFile().getPath()));
×
31
        }
32
        add(localFilePanel);
×
33
        if (session.getKeyFile().exists()) {
×
34
            if (session.getKeyPair() == null) {
×
35
                add(new Label("pubkey", "Error loading key file"));
×
36
            } else {
37
                add(new PubkeyItem("pubkey", session.getPubkeyhash()));
×
38
            }
39
        } else {
40
            add(new Label("pubkey", ""));
×
41
        }
42
    }
×
43

44
}
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