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

Camelcade / Perl5-IDEA / #525521819

12 Apr 2026 11:03AM UTC coverage: 76.189% (+0.1%) from 76.061%
#525521819

push

github

hurricup
[qodana] Suppressed a warning on the api method

14764 of 22542 branches covered (65.5%)

Branch coverage included in aggregate %.

31091 of 37644 relevant lines covered (82.59%)

0.83 hits per line

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

58.62
/plugin/debugger/src/main/java/com/perl5/lang/perl/debugger/protocol/PerlLoadedFileDescriptor.java
1
/*
2
 * Copyright 2015-2026 Alexandr Evstigneev
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 * http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16

17
package com.perl5.lang.perl.debugger.protocol;
18

19
import com.google.gson.annotations.Expose;
20
import com.intellij.openapi.util.NlsSafe;
21
import org.jetbrains.annotations.NotNull;
22
import org.jetbrains.annotations.Nullable;
23
import org.jetbrains.annotations.VisibleForTesting;
24

25

26
public class PerlLoadedFileDescriptor {
27
  @Expose private @NlsSafe @NotNull String path;
28
  @Expose private @NlsSafe @Nullable String name;
29

30
  @SuppressWarnings("unused")
31
  public PerlLoadedFileDescriptor() {
1✔
32
  }
1✔
33

34
  @VisibleForTesting
35
  public PerlLoadedFileDescriptor(@NotNull String path, @Nullable String name) {
1✔
36
    this.path = path;
1✔
37
    this.name = name;
1✔
38
  }
1✔
39

40
  public @NotNull @NlsSafe String getPath() {
41
    return path;
1!
42
  }
43

44
  public @Nullable @NlsSafe String getName() {
45
    return name;
1✔
46
  }
47

48
  public @NlsSafe @NotNull String getPresentableName() {
49
    return isEval() && name != null ? name : path;
1!
50
  }
51

52
  public boolean isEval() {
53
    return path.startsWith(PerlStackFrameDescriptor.EVAL_PREFIX);
1✔
54
  }
55

56
  @Override
57
  public boolean equals(Object o) {
58
    if (this == o) {
×
59
      return true;
×
60
    }
61
    if (!(o instanceof PerlLoadedFileDescriptor that)) {
×
62
      return false;
×
63
    }
64

65
    return getPath().equals(that.getPath());
×
66
  }
67

68
  @Override
69
  public int hashCode() {
70
    return getPath().hashCode();
×
71
  }
72

73
  @Override
74
  public String toString() {
75
    return "PerlLoadedFileDescriptor{" +
1✔
76
           "path='" + path + '\'' +
77
           ", name='" + name + '\'' +
78
           '}';
79
  }
80
}
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