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

Camelcade / Perl5-IDEA / #525521567

03 Jun 2025 07:42AM UTC coverage: 82.347% (+0.008%) from 82.339%
#525521567

push

github

hurricup
Localization Perl plugin

4 of 11 new or added lines in 5 files covered. (36.36%)

96 existing lines in 21 files now uncovered.

30852 of 37466 relevant lines covered (82.35%)

0.82 hits per line

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

75.0
/tt2/core/src/main/java/com/perl5/lang/tt2/filetypes/TemplateToolkitFileType.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.filetypes;
18

19
import com.intellij.openapi.fileTypes.FileType;
20
import com.intellij.openapi.fileTypes.ex.FileTypeIdentifiableByVirtualFile;
21
import com.intellij.openapi.vfs.VirtualFile;
22
import com.perl5.lang.perl.fileTypes.PerlFileTypeService;
23
import com.perl5.lang.perl.fileTypes.PerlPluginBaseFileType;
24
import com.perl5.lang.tt2.TemplateToolkitBundle;
25
import com.perl5.lang.tt2.TemplateToolkitIcons;
26
import com.perl5.lang.tt2.TemplateToolkitLanguage;
27
import org.jetbrains.annotations.NotNull;
28
import org.jetbrains.annotations.Nullable;
29

30
import javax.swing.*;
31

32

33
public class TemplateToolkitFileType extends PerlPluginBaseFileType implements FileTypeIdentifiableByVirtualFile {
34
  public static final FileType INSTANCE = new TemplateToolkitFileType();
1✔
35

36
  public TemplateToolkitFileType() {
37
    super(TemplateToolkitLanguage.INSTANCE);
1✔
38
  }
1✔
39

40
  @Override
41
  public @NotNull String getName() {
42
    return "Template Toolkit";
1✔
43
  }
44

45
  @Override
46
  public @NotNull String getDescription() {
47
    return TemplateToolkitBundle.message("label.template.toolkit.template");
1✔
48
  }
49

50
  @Override
51
  public @NotNull String getDefaultExtension() {
UNCOV
52
    return "tt";
×
53
  }
54

55
  @Override
56
  public @Nullable Icon getIcon() {
UNCOV
57
    return TemplateToolkitIcons.TTK2_ICON;
×
58
  }
59

60

61
  @Override
62
  public boolean isMyFileType(@NotNull VirtualFile virtualFile) {
63
    return PerlFileTypeService.getFileType(virtualFile) == INSTANCE;
1✔
64
  }
65
}
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