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

aiidateam / aiida_core / 4541
69%
develop: 74%

Build:
Build:
LAST BUILD BRANCH: fix_3032_doc_working_importexport
DEFAULT BRANCH: develop
Ran 29 Nov 2018 08:15AM UTC
Jobs 4
Files 407
Run time 8min
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

pending completion
4541

Pull #2246

travis-ci

web-flow
Refactor the function process decorator

The `calcfunction` and `workfunction` decorator are essentially
running the same code, with the only difference being the type of
node they use to represent their execution in the provenance graph.
The code has been refactored to a generic `process_function` decorator
which takes a node class as an argument. The `calcfunction` and
`workfunction` decorators are then simply defined by wrapping the
`process_function` with the correct node class, `CalcFunctionNode` and
`WorkFunctionNode` respectively.

The difference in link rules between the two concrete decorators is
also completely defined by those node classes, so the logic of the
`FunctionProcess` class that is dynamically generated by the process
function decorator can be implemented once. The common functionality of
defining and overriding inputs is tested in `test_process_functions`.
A `process_function` should never actually be run, but for testing
purposes we defined a dummy ORM class.

Functionality that is specific to the two concrete decorators, such as
which type of links can be created, is tested individually.
Pull Request #2246: Refactor the function process decorator

175 of 175 new or added lines in 18 files covered. (100.0%)

25383 of 36806 relevant lines covered (68.96%)

2.46 hits per line

Jobs
ID Job ID Ran Files Coverage
5 4541.5 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests") 29 Nov 2018 08:15AM UTC 0
62.02
Travis Job 4541.5
6 4541.6 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests") 29 Nov 2018 08:20AM UTC 0
62.0
Travis Job 4541.6
7 4541.7 (TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests") 29 Nov 2018 08:21AM UTC 0
60.86
Travis Job 4541.7
8 4541.8 (TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests") 29 Nov 2018 08:23AM UTC 0
60.83
Travis Job 4541.8
Source Files on build 4541
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4541
  • Pull Request #2246
  • PR Base - provenance_redesign (#4533)
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