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

Camelcade / Perl5-IDEA / #525521563

01 Jun 2025 02:15PM UTC coverage: 82.332% (+0.04%) from 82.289%
#525521563

push

github

hurricup
Bounded wildcards

2 of 2 new or added lines in 2 files covered. (100.0%)

69 existing lines in 17 files now uncovered.

30882 of 37509 relevant lines covered (82.33%)

0.82 hits per line

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

64.71
/plugin/debugger/src/main/java/com/perl5/lang/perl/debugger/protocol/PerlLoadedFileDescriptor.java
1
/*
2
 * Copyright 2015-2025 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
  public PerlLoadedFileDescriptor() {
1✔
31
  }
1✔
32

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

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

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

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

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

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

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

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

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