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

Camelcade / Perl5-IDEA / #525521510

17 Apr 2025 02:29PM UTC coverage: 82.177% (-0.5%) from 82.723%
#525521510

push

github

hurricup
Do not update asdf for CI

They are using "awesome" stub and polluting stdout of the process with their update notification

https://github.com/asdf-vm/asdf/pull/1833

30814 of 37497 relevant lines covered (82.18%)

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-2023 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.TemplateToolkitIcons;
25
import com.perl5.lang.tt2.TemplateToolkitLanguage;
26
import org.jetbrains.annotations.NotNull;
27
import org.jetbrains.annotations.Nullable;
28

29
import javax.swing.*;
30

31

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

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

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

44
  @Override
45
  public @NotNull String getDescription() {
46
    return "Template toolkit template";
1✔
47
  }
48

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

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

59

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