oramasearch / onnx-go

onnx-go gives the ability to import a pre-trained neural network within Go without being linked to a framework or library.
https://blog.owulveryck.info/2019/04/03/from-a-project-to-a-product-the-state-of-onnx-go.html
MIT License
704 stars 72 forks source link

test(internal/pb-onnx): improve test coverage #153

Closed rlespinasse closed 5 years ago

rlespinasse commented 5 years ago

With reduction of cyclomatic complexities in

Linked to #130

codecov[bot] commented 5 years ago

Codecov Report

Merging #153 into master will increase coverage by 0.99%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #153      +/-   ##
==========================================
+ Coverage   85.46%   86.45%   +0.99%     
==========================================
  Files         395      395              
  Lines       10477    10494      +17     
==========================================
+ Hits         8954     9073     +119     
+ Misses       1323     1225      -98     
+ Partials      200      196       -4
Impacted Files Coverage Δ
internal/pb-onnx/tensor.go 100% <100%> (+58.4%) :arrow_up:
internal/pb-onnx/dtype.go 100% <100%> (+77.14%) :arrow_up:
internal/pb-onnx/onnx.proto3.pb.go 3.94% <0%> (+0.39%) :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 380b86b...24ac1e0. Read the comment docs.