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

dart-lang / ffigen / 6470767942

10 Oct 2023 02:29PM UTC coverage: 91.966% (-0.6%) from 92.593%
6470767942

push

github

web-flow
Refactor `sameFfiDartAndCType` to not require a `Writer` (#629)

40 of 40 new or added lines in 12 files covered. (100.0%)

3709 of 4033 relevant lines covered (91.97%)

28.07 hits per line

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

71.43
/lib/src/code_generator/handle.dart
1
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2
// for details. All rights reserved. Use of this source code is governed by a
3
// BSD-style license that can be found in the LICENSE file.
4

5
import 'package:ffigen/src/code_generator.dart';
6

7
import 'writer.dart';
8

9
/// Represents a Dart_Handle.
10
class HandleType extends Type {
11
  const HandleType._();
57✔
12
  static const _handle = HandleType._();
13
  factory HandleType() => _handle;
1✔
14

15
  @override
1✔
16
  String getCType(Writer w) => '${w.ffiLibraryPrefix}.Handle';
2✔
17

18
  @override
1✔
19
  String getFfiDartType(Writer w) => 'Object';
20

21
  @override
×
22
  bool get sameFfiDartAndCType => false;
23

24
  @override
×
25
  String toString() => 'Handle';
26
}
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