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

Camelcade / Perl5-IDEA / #525521519

21 Apr 2025 01:57PM UTC coverage: 82.17% (+0.01%) from 82.156%
#525521519

push

github

hurricup
CAMELCADE-22634 Cleanup

8 of 8 new or added lines in 2 files covered. (100.0%)

102 existing lines in 15 files now uncovered.

30868 of 37566 relevant lines covered (82.17%)

0.82 hits per line

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

90.0
/plugin/core/src/main/java/com/perl5/lang/pod/PodParserDefinition.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;
18

19
import com.intellij.lang.ASTNode;
20
import com.intellij.lang.ParserDefinition;
21
import com.intellij.lang.PsiParser;
22
import com.intellij.lexer.Lexer;
23
import com.intellij.openapi.project.Project;
24
import com.intellij.psi.FileViewProvider;
25
import com.intellij.psi.PsiElement;
26
import com.intellij.psi.PsiFile;
27
import com.intellij.psi.tree.IFileElementType;
28
import com.intellij.psi.tree.TokenSet;
29
import com.perl5.lang.perl.parser.elementTypes.PsiElementProvider;
30
import com.perl5.lang.pod.lexer.PodElementTypes;
31
import com.perl5.lang.pod.lexer.PodLexerAdapter;
32
import com.perl5.lang.pod.lexer.PodTokenSetsEx;
33
import com.perl5.lang.pod.parser.PodParser;
34
import com.perl5.lang.pod.parser.psi.impl.PodFileImpl;
35
import org.jetbrains.annotations.NotNull;
36

37
public class PodParserDefinition implements ParserDefinition, PodElementTypes {
1✔
38
  @Override
39
  public @NotNull Lexer createLexer(Project project) {
40
    return new PodLexerAdapter();
1✔
41
  }
42

43
  @Override
44
  public @NotNull TokenSet getWhitespaceTokens() {
45
    return PodTokenSetsEx.WHITE_SPACES;
1✔
46
  }
47

48
  @Override
49
  public @NotNull TokenSet getCommentTokens() {
50
    return PodTokenSetsEx.COMMENTS;
1✔
51
  }
52

53
  @Override
54
  public @NotNull TokenSet getStringLiteralElements() {
55
    return TokenSet.EMPTY;
1✔
56
  }
57

58
  @Override
59
  public @NotNull PsiParser createParser(final Project project) {
60
    return new PodParser();
1✔
61
  }
62

63
  @Override
64
  public @NotNull IFileElementType getFileNodeType() {
65
    return FILE;
1✔
66
  }
67

68
  @Override
69
  public @NotNull PsiFile createFile(@NotNull FileViewProvider viewProvider) {
70
    return new PodFileImpl(viewProvider);
1✔
71
  }
72

73
  @Override
74
  public @NotNull SpaceRequirements spaceExistenceTypeBetweenTokens(ASTNode left, ASTNode right) {
UNCOV
75
    return SpaceRequirements.MAY;
×
76
  }
77

78
  @Override
79
  public @NotNull PsiElement createElement(ASTNode node) {
80
    return ((PsiElementProvider)node.getElementType()).getPsiElement(node);
1✔
81
  }
82
}
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