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

Add options to Collection object #36

Closed TcM1911 closed 3 years ago

TcM1911 commented 3 years ago

Collection can now be created via the "New" function. The function takes arguments that allows for controlling some of the collection's behavior.

By default a Collection tracks the order of items added so outputs are predictable. This can be disabled via an option parameter.

codecov[bot] commented 3 years ago

Codecov Report

Merging #36 (5945c20) into master (f6ff074) will increase coverage by 0.01%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #36      +/-   ##
==========================================
+ Coverage   98.03%   98.04%   +0.01%     
==========================================
  Files          42       42              
  Lines        1730     1741      +11     
==========================================
+ Hits         1696     1707      +11     
  Misses         17       17              
  Partials       17       17              
Impacted Files Coverage Δ
stix.go 99.06% <100.00%> (+0.02%) :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 f6ff074...5945c20. Read the comment docs.