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

Duit-Foundation / duit_kernel / 20522775167

26 Dec 2025 12:54PM UTC coverage: 76.029% (-0.4%) from 76.46%
20522775167

Pull #50

github

web-flow
Merge 20c5b5c4e into 08552f056
Pull Request #50: feat: Migration to capability-based API pt1

0 of 13 new or added lines in 3 files covered. (0.0%)

1754 of 2307 relevant lines covered (76.03%)

4.74 hits per line

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

0.0
/lib/src/driver_api/capabilities/ui_controller_capability.dart
1
import "package:duit_kernel/duit_kernel.dart";
2
import "package:meta/meta.dart";
3

4
mixin UIControllerCapabilityDelegate {
5
  late final UIDriver driver;
6

7
  /// Attaches a controller to the UI driver.
8
  ///
9
  /// Parameters:
10
  /// - [id]: The ID of the controller.
11
  /// - [controller]: The UI element controller to attach.
NEW
12
  @mustBeOverridden
×
13
  void attachController(
14
    String id,
15
    UIElementController controller,
16
  ) =>
17
      throw const MissingCapabilityMethodImplementation(
18
        "attachController",
19
        "UIControllerCapabilityDelegate",
20
      );
21

22
  /// Detaches a controller from the UI driver.
NEW
23
  @mustBeOverridden
×
24
  void detachController(String id) =>
25
      throw const MissingCapabilityMethodImplementation(
26
        "detachController",
27
        "UIControllerCapabilityDelegate",
28
      );
29

30
  /// Gets the controller associated with the given ID
NEW
31
  @mustBeOverridden
×
32
  UIElementController? getController(String id) =>
33
      throw const MissingCapabilityMethodImplementation(
34
        "getController",
35
        "UIControllerCapabilityDelegate",
36
      );
37

38
  /// Updates the attributes of a controller.
NEW
39
  @mustBeOverridden
×
40
  Future<void> updateAttributes(
41
    String controllerId,
42
    Map<String, dynamic> json,
43
  ) =>
44
      throw const MissingCapabilityMethodImplementation(
45
        "updateAttributes",
46
        "UIControllerCapabilityDelegate",
47
      );
48

NEW
49
  @mustBeOverridden
×
50
  int get controllersCount => throw const MissingCapabilityMethodImplementation(
51
        "controllersCount",
52
        "UIControllerCapabilityDelegate",
53
      );
54

NEW
55
  @mustBeOverridden
×
56
  void releaseResources() => throw const MissingCapabilityMethodImplementation(
57
        "releaseResources",
58
        "UIControllerCapabilityDelegate",
59
      );
60
}
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