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

Camelcade / Perl5-IDEA / #525521642

22 Jul 2025 01:00PM UTC coverage: 82.312% (+0.008%) from 82.304%
#525521642

push

github

hurricup
#2842 Split Template Toolkit plugin

23 of 42 new or added lines in 5 files covered. (54.76%)

55 existing lines in 10 files now uncovered.

30975 of 37631 relevant lines covered (82.31%)

0.82 hits per line

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

0.0
/tt2/backend/src/main/java/com/perl5/lang/tt2/psi/references/TemplateToolkitFileContextProvider.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.tt2.psi.references;
18

19
import com.intellij.psi.FileContextProvider;
20
import com.intellij.psi.PsiFile;
21
import com.intellij.psi.PsiFileSystemItem;
22
import com.perl5.lang.tt2.idea.settings.TemplateToolkitSettingsBackendHelper;
23
import com.perl5.lang.tt2.psi.TemplateToolkitFile;
24
import org.jetbrains.annotations.NotNull;
25
import org.jetbrains.annotations.Nullable;
26

27
import java.util.Collection;
28

29

30
public class TemplateToolkitFileContextProvider extends FileContextProvider {
×
31
  @Override
32
  protected boolean isAvailable(PsiFile file) {
33
    return file instanceof TemplateToolkitFile;
×
34
  }
35

36
  @Override
37
  public @NotNull Collection<PsiFileSystemItem> getContextFolders(PsiFile file) {
NEW
38
    return TemplateToolkitSettingsBackendHelper.getInstance(file.getProject()).getTemplatePsiRoots();
×
39
  }
40

41
  @Override
42
  public @Nullable PsiFile getContextFile(PsiFile file) {
43
    return null;
×
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