francoispqt / gojay

high performance JSON encoder/decoder with stream API for Golang
MIT License
2.11k stars 112 forks source link

add Index() method to Decoder #96

Closed verytable closed 5 years ago

verytable commented 5 years ago

Implementation of suggested solution to fix https://github.com/francoispqt/gojay/issues/94

Index() returns the index of an array element being decoded and 0 in other cases

codecov-io commented 5 years ago

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #96      +/-   ##
=========================================
+ Coverage    98.7%   98.7%   +<.01%     
=========================================
  Files          36      36              
  Lines        5175    5189      +14     
=========================================
+ Hits         5108    5122      +14     
  Misses         52      52              
  Partials       15      15
Impacted Files Coverage Δ
decode.go 100% <ø> (ø) :arrow_up:
decode_array.go 94.63% <100%> (+0.55%) :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 106fcfa...75d85cb. Read the comment docs.