TcM1911 / stix2

A pure Go library for working with Structured Threat Information Expression (STIX™) version 2.x data
BSD 2-Clause "Simplified" License
22 stars 6 forks source link

Fix duplication issue in AllObjects return. #37

Closed TcM1911 closed 3 years ago

TcM1911 commented 3 years ago

If the same object was added twice, the list that is used to track the order of additions didnt account for this. Instead it added the id each add was called. This fixes this issue.

codecov[bot] commented 3 years ago

Codecov Report

Merging #37 (594652d) into master (9d20952) will increase coverage by 0.00%. The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #37   +/-   ##
=======================================
  Coverage   98.04%   98.04%           
=======================================
  Files          42       42           
  Lines        1741     1742    +1     
=======================================
+ Hits         1707     1708    +1     
  Misses         17       17           
  Partials       17       17           
Impacted Files Coverage Δ
stix.go 99.06% <100.00%> (+<0.01%) :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 9d20952...594652d. Read the comment docs.