SKA-ScienceDataProcessor / integration-prototype

SDP Integration Prototype
BSD 3-Clause "New" or "Revised" License
4 stars 7 forks source link

TSK-2774 Add initial unit test for C receiver #96

Closed njthykkathu closed 5 years ago

njthykkathu commented 5 years ago

<!—Unit Test for Visibility Receive -->

Description:

A single unit test running for vis receive covering some aspect of the API • Creates a mock SPEAD packet in a memory block with three items and pass it to the stream_decode. • Creates the receiver with a single stream and a single buffer. • Pulls the pointer to the first stream out of the receiver and passes that to stream_decode with the mock (in memory) packet

Testing instructions:

To run the unit test go to following directory sip/science_pipeline_workflows/ingest_visibilities/recv_c and run the following commands

mkdir build
cd build
cmake ..
make
ctest

To run the test manually from the build directory, use the following command

./test/recv_test

Types of changes

Checklist:

codecov[bot] commented 5 years ago

Codecov Report

Merging #96 into master will increase coverage by 0.07%. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #96      +/-   ##
==========================================
+ Coverage   84.04%   84.11%   +0.07%     
==========================================
  Files          61       61              
  Lines        2846     2846              
  Branches      237      237              
==========================================
+ Hits         2392     2394       +2     
+ Misses        402      401       -1     
+ Partials       52       51       -1
Impacted Files Coverage Δ
...tion_db/sip_config_db/utils/generate_sbi_config.py 100% <0%> (+2.77%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 32c684b...bca5ca1. Read the comment docs.