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

aiidateam / aiida_core / 4544
70%
develop: 74%

Build:
Build:
LAST BUILD BRANCH: fix_3032_doc_working_importexport
DEFAULT BRANCH: develop
Ran 29 Nov 2018 09:41AM UTC
Jobs 3
Files 407
Run time 7min
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
4544

push

travis-ci

web-flow
Refactor the function process decorator (#2246)

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.

25369 of 36809 relevant lines covered (68.92%)

1.84 hits per line

Jobs
ID Job ID Ran Files Coverage
5 4544.5 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests") 29 Nov 2018 09:41AM UTC 0
62.02
Travis Job 4544.5
7 4544.7 (TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests") 29 Nov 2018 09:47AM UTC 0
60.86
Travis Job 4544.7
8 4544.8 (TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests") 29 Nov 2018 09:47AM UTC 0
60.83
Travis Job 4544.8
Source Files on build 4544
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4544
  • fa8f6174 on github
  • Prev Build on provenance_redesign (#4533)
  • Next Build on provenance_redesign (#4546)
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