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

Camelcade / Perl5-IDEA / #525521576

05 Jun 2025 06:17AM UTC coverage: 82.298% (-0.02%) from 82.318%
#525521576

push

github

hurricup
Localized strings and improved annotations

26 of 41 new or added lines in 19 files covered. (63.41%)

22 existing lines in 6 files now uncovered.

30837 of 37470 relevant lines covered (82.3%)

0.82 hits per line

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

80.0
/plugin/core/src/main/java/com/perl5/lang/perl/idea/structureView/filters/PerlConstantFilter.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.idea.structureView.filters;
18

19
import com.intellij.ide.util.treeView.smartTree.ActionPresentation;
20
import com.intellij.ide.util.treeView.smartTree.ActionPresentationData;
21
import com.perl5.PerlBundle;
22
import com.perl5.PerlIcons;
23
import com.perl5.lang.perl.idea.structureView.elements.PerlSubStructureViewElement;
24
import org.jetbrains.annotations.NotNull;
25

26

27
public class PerlConstantFilter extends PerlFilter {
1✔
28
  public static final PerlConstantFilter INSTANCE = new PerlConstantFilter();
1✔
29
  private static final String ID = "SHOW_CONSTANTS";
30

31
  @Override
32
  protected boolean isMyElement(@NotNull PerlSubStructureViewElement treeElement) {
33
    return treeElement.isConstant();
1✔
34
  }
35

36
  @Override
37
  public @NotNull ActionPresentation getPresentation() {
NEW
38
    return new ActionPresentationData(PerlBundle.message("action.show.constants.text"), null, PerlIcons.CONSTANT_GUTTER_ICON);
×
39
  }
40

41
  @Override
42
  public @NotNull String getName() {
43
    return ID;
1✔
44
  }
45
}
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