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

Camelcade / Perl5-IDEA / #525521824

24 Apr 2026 06:38PM UTC coverage: 76.187% (+0.2%) from 75.952%
#525521824

push

github

hurricup
Pass a disposable to Registry.get to revert it in the end

14757 of 22542 branches covered (65.46%)

Branch coverage included in aggregate %.

31096 of 37643 relevant lines covered (82.61%)

0.83 hits per line

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

66.67
/plugin/asdf/src/main/java/com/perl5/lang/perl/idea/sdk/versionManager/asdf/AsdfData.java
1
/*
2
 * Copyright 2015-2026 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.perl.idea.sdk.versionManager.asdf;
18

19
import com.intellij.openapi.project.Project;
20
import com.intellij.openapi.projectRoots.Sdk;
21
import com.intellij.util.ObjectUtils;
22
import com.perl5.lang.perl.adapters.PackageManagerAdapter;
23
import com.perl5.lang.perl.idea.execution.PerlCommandLine;
24
import com.perl5.lang.perl.idea.sdk.versionManager.PerlRealVersionManagerData;
25
import com.perl5.lang.perl.idea.sdk.versionManager.PerlVersionManagerData;
26
import org.jetbrains.annotations.Contract;
27
import org.jetbrains.annotations.NotNull;
28
import org.jetbrains.annotations.Nullable;
29

30
import java.io.File;
31

32
import static com.perl5.lang.perl.idea.sdk.versionManager.asdf.AsdfAdapter.ASDF_EXEC;
33
import static com.perl5.lang.perl.idea.sdk.versionManager.asdf.AsdfAdapter.ASDF_VERSION;
34

35
class AsdfData extends PerlRealVersionManagerData<AsdfData, AsdfHandler> {
36
  AsdfData(@NotNull AsdfHandler handler) {
37
    super(handler);
1✔
38
  }
1✔
39

40
  AsdfData(@NotNull String versionManagerPath,
41
           @NotNull String distributionId,
42
           @NotNull AsdfHandler handler) {
43
    super(versionManagerPath, distributionId, handler);
1✔
44
  }
1✔
45

46
  @Override
47
  public @NotNull PerlCommandLine patchCommandLine(@NotNull PerlCommandLine originalCommandLine) {
48
    originalCommandLine.setExePath(new File(originalCommandLine.getExePath()).getName());
1✔
49
    return originalCommandLine.prependLineWith(getVersionManagerPath(), ASDF_EXEC).withEnvironment(ASDF_VERSION, getDistributionId());
1!
50
  }
51

52
  @Override
53
  public void installCpanminus(@Nullable Project project) {
54
    PackageManagerAdapter.installCpanminus(project);
×
55
  }
×
56

57
  @Override
58
  protected @NotNull AsdfData self() {
59
    return this;
1!
60
  }
61

62
  @SuppressWarnings("unused")
63
  @Contract("null->null")
64
  public static @Nullable AsdfData from(@Nullable Sdk sdk) {
65
    return ObjectUtils.tryCast(PerlVersionManagerData.from(sdk), AsdfData.class);
×
66
  }
67

68
  @Override
69
  public @Nullable String getTerminalCustomizerScriptName() {
70
    return "asdf_starter.sh";
1✔
71
  }
72
}
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