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

Camelcade / Perl5-IDEA / #525521557

29 May 2025 01:55PM UTC coverage: 82.275% (+0.001%) from 82.274%
#525521557

push

github

hurricup
Migrated to ProjectActivity

0 of 1 new or added line in 1 file covered. (0.0%)

104 existing lines in 12 files now uncovered.

30882 of 37535 relevant lines covered (82.28%)

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
  @NlsSafe
48
  public @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) {
×
UNCOV
59
      return true;
×
60
    }
61
    if (!(o instanceof PerlLoadedFileDescriptor that)) {
×
UNCOV
62
      return false;
×
63
    }
64

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

68
  @Override
69
  public int hashCode() {
UNCOV
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