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

Camelcade / Perl5-IDEA / #525521660

24 Aug 2025 01:28PM UTC coverage: 75.89% (-6.3%) from 82.227%
#525521660

push

github

hurricup
Migrated coverage reporting to https://github.com/nbaztec/coveralls-jacoco-gradle-plugin

See: https://github.com/kt3k/coveralls-gradle-plugin/issues/119

14751 of 22639 branches covered (65.16%)

Branch coverage included in aggregate %.

31091 of 37767 relevant lines covered (82.32%)

0.82 hits per line

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

57.14
/plugin/common/src/main/java/com/perl5/lang/pod/idea/editor/PodBraceMathcer.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.pod.idea.editor;
18

19
import com.intellij.lang.BracePair;
20
import com.intellij.lang.PairedBraceMatcher;
21
import com.intellij.psi.PsiFile;
22
import com.intellij.psi.tree.IElementType;
23
import org.jetbrains.annotations.NotNull;
24
import org.jetbrains.annotations.Nullable;
25

26
import static com.perl5.lang.pod.parser.PodElementTypesGenerated.*;
27

28

29
public class PodBraceMathcer implements PairedBraceMatcher {
1✔
30
  private static final BracePair[] PAIRS = new BracePair[]{
1✔
31
    new BracePair(POD_BEGIN, POD_END, true),
32
    new BracePair(POD_OVER, POD_BACK, true),
33
    new BracePair(POD_ANGLE_LEFT, POD_ANGLE_RIGHT, false),
34
    new BracePair(POD_PAREN_LEFT, POD_PAREN_RIGHT, false),
35
    new BracePair(POD_BRACE_LEFT, POD_BRACE_RIGHT, false),
36
    new BracePair(POD_BRACKET_LEFT, POD_BRACKET_RIGHT, false),
37
  };
38

39
  @Override
40
  public BracePair @NotNull [] getPairs() {
41
    return PAIRS;
1!
42
  }
43

44
  @Override
45
  public boolean isPairedBracesAllowedBeforeType(@NotNull IElementType lbraceType, @Nullable IElementType contextType) {
46
    return true;
×
47
  }
48

49
  @Override
50
  public int getCodeConstructStart(PsiFile file, int openingBraceOffset) {
51
    return openingBraceOffset;
×
52
  }
53
}
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