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

Camelcade / Perl5-IDEA / #525521510

17 Apr 2025 02:29PM UTC coverage: 82.177% (-0.5%) from 82.723%
#525521510

push

github

hurricup
Do not update asdf for CI

They are using "awesome" stub and polluting stdout of the process with their update notification

https://github.com/asdf-vm/asdf/pull/1833

30814 of 37497 relevant lines covered (82.18%)

0.82 hits per line

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

46.67
/plugin/core/src/main/java/com/perl5/lang/perl/psi/impl/PerlImplicitElement.java
1
/*
2
 * Copyright 2015-2020 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.psi.impl;
18

19
import com.intellij.navigation.ItemPresentation;
20
import com.intellij.psi.PsiElement;
21
import com.intellij.psi.PsiFile;
22
import com.intellij.psi.PsiManager;
23
import com.intellij.psi.impl.light.LightElement;
24
import com.perl5.lang.perl.PerlLanguage;
25
import com.perl5.lang.perl.idea.presentations.PerlItemPresentationSimple;
26
import org.jetbrains.annotations.NotNull;
27
import org.jetbrains.annotations.Nullable;
28

29
public abstract class PerlImplicitElement extends LightElement {
30
  private final @Nullable PsiElement myParent;
31

32

33
  public PerlImplicitElement(@NotNull PsiManager manager,
34
                             @Nullable PsiElement parent) {
35
    super(manager, PerlLanguage.INSTANCE);
1✔
36
    myParent = parent;
1✔
37
  }
1✔
38

39
  @Override
40
  public @Nullable PsiElement getParent() {
41
    return myParent;
1✔
42
  }
43

44
  @Override
45
  public int getTextOffset() {
46
    return getParent() == null ? 0 : getParent().getTextOffset();
×
47
  }
48

49
  @Override
50
  public PsiFile getContainingFile() {
51
    PsiElement parent = getParent();
1✔
52
    return parent == null ? null : parent.getContainingFile();
1✔
53
  }
54

55
  @Override
56
  public ItemPresentation getPresentation() {
57
    return new PerlItemPresentationSimple(this, getName());
×
58
  }
59

60

61
  @Override
62
  public boolean equals(Object o) {
63
    if (this == o) {
×
64
      return true;
×
65
    }
66
    if (o == null || getClass() != o.getClass()) {
×
67
      return false;
×
68
    }
69

70
    PerlImplicitElement element = (PerlImplicitElement)o;
×
71

72
    return myParent != null ? myParent.equals(element.myParent) : element.myParent == null;
×
73
  }
74

75
  @Override
76
  public int hashCode() {
77
    return myParent != null ? myParent.hashCode() : 0;
1✔
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