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

Camelcade / Perl5-IDEA / #525521537

19 May 2025 08:07AM UTC coverage: 82.163% (-0.04%) from 82.204%
#525521537

push

github

hurricup
Got rid of exposed private members and inner classes

8 of 10 new or added lines in 5 files covered. (80.0%)

75 existing lines in 11 files now uncovered.

30862 of 37562 relevant lines covered (82.16%)

0.82 hits per line

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

88.89
/plugin/core/src/main/java/com/perl5/lang/perl/psi/PerlStubBasedPsiElementBase.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.psi;
18

19
import com.intellij.extapi.psi.StubBasedPsiElementBase;
20
import com.intellij.lang.ASTNode;
21
import com.intellij.psi.PsiElement;
22
import com.intellij.psi.ResolveState;
23
import com.intellij.psi.StubBasedPsiElement;
24
import com.intellij.psi.scope.PsiScopeProcessor;
25
import com.intellij.psi.stubs.IStubElementType;
26
import com.intellij.psi.stubs.StubElement;
27
import com.intellij.psi.tree.IElementType;
28
import com.intellij.psi.util.PsiTreeUtil;
29
import com.perl5.lang.perl.psi.utils.PerlResolveUtil;
30
import org.jetbrains.annotations.NotNull;
31

32
import java.util.List;
33

34

35
public class PerlStubBasedPsiElementBase<T extends StubElement<?>> extends StubBasedPsiElementBase<T> implements StubBasedPsiElement<T> {
36
  public PerlStubBasedPsiElementBase(@NotNull T stub, @NotNull IStubElementType nodeType) {
37
    super(stub, nodeType);
1✔
38
  }
1✔
39

40
  public PerlStubBasedPsiElementBase(@NotNull ASTNode node) {
41
    super(node);
1✔
42
  }
1✔
43

44
  @Override
45
  public String toString() {
46
    return getClass().getSimpleName() + "(" + getIElementType() + ")";
1✔
47
  }
48

49
  @Override
50
  public final IElementType getIElementType() {
51
    return getElementTypeImpl();
1✔
52
  }
53

54
  @Override
55
  public boolean processDeclarations(@NotNull PsiScopeProcessor processor,
56
                                     @NotNull ResolveState state,
57
                                     PsiElement lastParent,
58
                                     @NotNull PsiElement place) {
59

60
    return PerlResolveUtil.processChildren(this, processor, state, lastParent, place) &&
1✔
61
           processor.execute(this, state);
1✔
62
  }
63

64
  public @NotNull List<PsiPerlExpr> getExprList() {
UNCOV
65
    return PsiTreeUtil.getChildrenOfTypeAsList(this, PsiPerlExpr.class);
×
66
  }
67
}
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