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

dart-lang / ffigen / 6061243944

01 Sep 2023 11:05PM CUT coverage: 92.401%. Remained the same
6061243944

push

github

web-flow
Bump actions/checkout from 3.5.3 to 3.6.0 (#611)

Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.3 to 3.6.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/actions/checkout/releases">actions/checkout's releases</a>.</em></p>
<blockquote>
<h2>v3.6.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Mark test scripts with Bash'isms to be run via Bash by <a href="https://github.com/dscho"><code>@​dscho</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1377">actions/checkout#1377</a></li>
<li>Add option to fetch tags even if fetch-depth &gt; 0 by <a href="https://github.com/RobertWieczoreck"><code>@​RobertWieczoreck</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/579">actions/checkout#579</a></li>
<li>Release 3.6.0 by <a href="https://github.com/luketomlinson"><code>@​luketomlinson</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1437">actions/checkout#1437</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/RobertWieczoreck"><code>@​RobertWieczoreck</code></a> made their first contribution in <a href="https://redirect.github.com/actions/checkout/pull/579">actions/checkout#579</a></li>
<li><a href="https://github.com/luketomlinson"><code>@​luketomlinson</code></a> made their first contribution in <a href="https://redirect.github.com/actions/checkout/pull/1437">actions/checkout#1437</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/actions/checkout/compare/v3.5.3...v3.6.0">https://github.com/actions/checkout/compare/v3.5.3...v3.6.0</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/actions/checkout/blob/main/CHANGELOG.md">actions/checkout's changelog</a>.</em></p>
<blockquote>
<h1>Changelog</h1>
<h2>v3.6.0</h2>
<ul>
<li><a href="https://redirect.github.com/actions/checkout/pull/1377">Fix: Mark test ... (continued)

3587 of 3882 relevant lines covered (92.4%)

28.33 hits per line

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

85.71
/lib/src/header_parser/sub_parsers/var_parser.dart
1
// Copyright (c) 2021, 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
import 'package:ffigen/src/header_parser/data.dart';
7
import 'package:ffigen/src/header_parser/includer.dart';
8
import 'package:logging/logging.dart';
9

10
import '../clang_bindings/clang_bindings.dart' as clang_types;
11
import '../utils.dart';
12

13
final _logger = Logger('ffigen.header_parser.var_parser');
12✔
14

15
/// Parses a global variable
16
Global? parseVarDeclaration(clang_types.CXCursor cursor) {
6✔
17
  final name = cursor.spelling();
6✔
18
  final usr = cursor.usr();
6✔
19
  if (bindingsIndex.isSeenGlobalVar(usr)) {
12✔
20
    return bindingsIndex.getSeenGlobalVar(usr);
×
21
  }
22
  if (!shouldIncludeGlobalVar(usr, name)) {
6✔
23
    return null;
24
  }
25

26
  _logger.fine('++++ Adding Global: ${cursor.completeStringRepr()}');
16✔
27

28
  final type = cursor.type().toCodeGenType();
8✔
29
  if (type.baseType is UnimplementedType) {
8✔
30
    _logger.fine('---- Removed Global, reason: unsupported type: '
3✔
31
        '${cursor.completeStringRepr()}');
1✔
32
    _logger.warning("Skipped global variable '$name', type not supported.");
3✔
33
    return null;
34
  }
35

36
  if (config.ffiNativeConfig.enabled) {
12✔
37
    _logger
×
38
        .warning("Skipped global variable '$name', not supported in Natives.");
×
39
    return null;
40
  }
41

42
  final global = Global(
4✔
43
    originalName: name,
44
    name: config.globals.renameUsingConfig(name),
12✔
45
    usr: usr,
46
    type: type,
47
    dartDoc: getCursorDocComment(cursor),
4✔
48
    exposeSymbolAddress: config.functionDecl.shouldIncludeSymbolAddress(name),
12✔
49
  );
50
  bindingsIndex.addGlobalVarToSeen(usr, global);
8✔
51
  return global;
52
}
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

© 2025 Coveralls, Inc