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

Camelcade / Perl5-IDEA / #525521705

10 Nov 2025 08:49AM UTC coverage: 75.92% (-0.05%) from 75.97%
#525521705

push

github

hurricup
Passed the reason to the daemon code analyzer

14750 of 22633 branches covered (65.17%)

Branch coverage included in aggregate %.

1 of 1 new or added line in 1 file covered. (100.0%)

82 existing lines in 10 files now uncovered.

31070 of 37720 relevant lines covered (82.37%)

0.82 hits per line

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

42.11
/mojo/backend/src/main/java/com/perl5/lang/mojolicious/model/MojoProjectListener.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.mojolicious.model;
18

19
import com.intellij.util.messages.Topic;
20
import org.jetbrains.annotations.NotNull;
21

22
public interface MojoProjectListener {
23
  Topic<MojoProjectListener> MOJO_PROJECT_TOPIC = Topic.create("Mojo project manager topic", MojoProjectListener.class);
1✔
24

25
  default void projectCreated(@NotNull MojoProject project) {
26
    MojoProjectManager.LOG.debug("project created event: " + project);
1✔
27
    if (project instanceof MojoApp mojoApp) {
1✔
28
      applicationCreated(mojoApp);
1✔
29
    }
30
    else {
31
      pluginCreated((MojoPlugin)project);
1✔
32
    }
33
  }
1✔
34

35
  default void applicationCreated(@NotNull MojoApp mojoApp) {}
×
36

37
  default void pluginCreated(@NotNull MojoPlugin mojoPlugin) {}
×
38

39
  /**
40
   * @apiNote invoked before deleting from the model
41
   */
42
  default void projectDeleted(@NotNull MojoProject project) {
UNCOV
43
    MojoProjectManager.LOG.debug("project deleted event: " + project);
×
UNCOV
44
    if (project instanceof MojoApp mojoApp) {
×
45
      applicationDeleted(mojoApp);
×
46
    }
47
    else {
UNCOV
48
      pluginDeleted((MojoPlugin)project);
×
49
    }
UNCOV
50
  }
×
51

52
  /**
53
   * @apiNote invoked before deleting from the model
54
   */
55
  @SuppressWarnings("EmptyMethod")
56
  default void applicationDeleted(@SuppressWarnings("unused") @NotNull MojoApp mojoApp) { }
×
57

58
  /**
59
   * @apiNote invoked before deleting from the model
60
   */
61
  @SuppressWarnings("EmptyMethod")
UNCOV
62
  default void pluginDeleted(@SuppressWarnings("unused") @NotNull MojoPlugin mojoPlugin) { }
×
63
}
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