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

Duit-Foundation / duit_kernel / 20897257664

11 Jan 2026 03:09PM UTC coverage: 75.211% (-1.5%) from 76.681%
20897257664

Pull #52

github

web-flow
Merge 5c87aa933 into b1348d3d1
Pull Request #52: feat: New capabilities

3 of 66 new or added lines in 9 files covered. (4.55%)

2 existing lines in 2 files now uncovered.

1781 of 2368 relevant lines covered (75.21%)

4.88 hits per line

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

0.0
/lib/src/capabilities/scripting_capability.dart
1
import "package:duit_kernel/duit_kernel.dart";
2
import "package:duit_kernel/src/capabilities/driver_ref.dart";
3
import "package:meta/meta.dart";
4

5
mixin ScriptingCapabilityDelegate implements DriverRefHolder {
NEW
6
  @override
×
7
  @mustBeOverridden
8
  void linkDriver(UIDriver driver) => throw const MissingCapabilityMethodImplementation(
9
        "linkDriver",
10
        "ScriptingCapabilityDelegate",
11
      );
12

13
  /// Eval script source code
NEW
14
  @mustBeOverridden
×
15
  Future<void> evalScript(String source) => throw const MissingCapabilityMethodImplementation(
16
        "evalScript",
17
        "ScriptingCapabilityDelegate",
18
      );
19

20
  ///Based on the name of the function, starts its execution.
21
  ///
22
  ///Accepts additional parameters [url], [meta], [body],
23
  ///necessary for working with the transport object,
24
  ///as well as for passing data to the executing script
NEW
25
  @mustBeOverridden
×
26
  Future<Map<String, dynamic>?> execScript(
27
    String functionName, {
28
    String? url,
29
    Map<String, dynamic>? meta,
30
    Map<String, dynamic>? body,
31
  }) =>
32
      throw const MissingCapabilityMethodImplementation(
33
        "execScript",
34
        "ScriptingCapabilityDelegate",
35
      );
36

37
  /// Initializes the scripting capability.
NEW
38
  @mustBeOverridden
×
39
  Future<void> initScriptingCapability() => throw const MissingCapabilityMethodImplementation(
40
        "initScriptingCapability",
41
        "ScriptingCapabilityDelegate",
42
      );
43
}
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