p4lang / p4c-bm

Generates the JSON configuration for the behavioral-model (bmv2), as well as the C/C++ PD code
Apache License 2.0
24 stars 29 forks source link

Do not assert if FL calculation has multiple algorithms #95

Closed antoninbas closed 6 years ago

antoninbas commented 6 years ago

Instead print a warning and statically select the first possible algo in the list.

codecov-io commented 6 years ago

Codecov Report

Merging #95 into master will increase coverage by <.01%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #95      +/-   ##
=========================================
+ Coverage   97.09%   97.1%   +<.01%     
=========================================
  Files          10      10              
  Lines        1688    1693       +5     
=========================================
+ Hits         1639    1644       +5     
  Misses         49      49
Impacted Files Coverage Δ
p4c_bm/gen_json.py 98.05% <100%> (ø) :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 f59d441...82453c4. Read the comment docs.