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

GothenburgBitFactory / taskwarrior / 10336191094
85%

Build:
DEFAULT BRANCH: develop
Ran 11 Aug 2024 02:11AM UTC
Jobs 1
Files 164
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 Aug 2024 02:06AM UTC coverage: 84.973% (+0.2%) from 84.733%
10336191094

push

github

web-flow
Use TaskChampion 0.7.0, now via cxx instead of hand-rolled FFI (#3588)

TC 0.7.0 introduces a new `TaskData` type that maps to Taskwarrior's
`Task` type more cleanly. It also introduces the idea of gathering lists
of operations and "committing" them to a replica.

A consequence of this change is that TaskChampion no longer
automatically maintains dependency information, so Taskwarrior must do
so, with its `TDB2::dependency_sync` method. This method does a very
similar thing to what TaskChampion had been doing, so this is a shift of
responsibility but not a major performance difference.

Cxx is .. not great. It is missing a lot of useful things that make a
general-purpose bridge impractical:

 - no support for trait objects
 - no support for `Option<T>` (https://github.com/dtolnay/cxx/issues/87)
 - no support for `Vec<Box<..>>`

As a result, some creativity is required in writing the bridge, for
example returning a `Vec<OptionTaskData>` from `all_task_data` to allow
individual `TaskData` values to be "taken" from the vector.

That said, Cxx is the current state-of-the-art, and does a good job of
ensuring memory safety, at the cost of some slightly awkward APIs.

Subsequent work can remove the "TDB2" layer and allow commands and other
parts of Taskwarrior to interface directly with the `Replica`.

255 of 279 new or added lines in 7 files covered. (91.4%)

7 existing lines in 4 files now uncovered.

19011 of 22373 relevant lines covered (84.97%)

23094.9 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
41.67
-5.95% src/main.cpp
4
90.29
-0.57% src/Context.cpp
7
73.08
5.22% src/commands/CmdSync.cpp
10
89.42
1.0% src/TDB2.cpp

Uncovered Existing Lines

Lines Coverage ∆ File
1
79.68
0.89% src/Task.cpp
1
90.29
-0.57% src/Context.cpp
2
84.0
-0.89% src/libshared/src/Duration.cpp
3
89.42
1.0% src/TDB2.cpp
Jobs
ID Job ID Ran Files Coverage
1 10336191094.1 11 Aug 2024 02:11AM UTC 164
84.97
GitHub Action Run
Source Files on build 10336191094
  • Tree
  • List 164
  • Changed 28
  • Source Changed 7
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #10336191094
  • 4ff63a79 on github
  • Prev Build on develop (#10327832508)
  • Next Build on develop (#10343891157)
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