hashicorp / hcl2

Former temporary home for experimental new version of HCL
https://github.com/hashicorp/hcl
Mozilla Public License 2.0
373 stars 66 forks source link

hclpack: fix missing range on remaining body #74

Closed akupila closed 5 years ago

akupila commented 5 years ago

Fixes setting the MissingItemRange on the remaining body when a *hclpack.Body is partially decoded. Otherwise when the remaining body is decoded with missing fields, the diagnostic cannot point to where they should be set.

codecov-io commented 5 years ago

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@819a65a). Click here to learn what that means. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master      #74   +/-   ##
=========================================
  Coverage          ?   65.64%           
=========================================
  Files             ?       97           
  Lines             ?    10239           
  Branches          ?        0           
=========================================
  Hits              ?     6721           
  Misses            ?     3187           
  Partials          ?      331
Impacted Files Coverage Δ
hclpack/structure.go 45.23% <100%> (ø)

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 819a65a...bd81fca. Read the comment docs.