Yaml Injector v0.2.0 - Jason Giedymin
See releases for the latest downloads.
Current release is v0.2.0.
Available in:
To Install:
# TODO
Running (if installed):
yaml-injector \
--debug \
--test \
--file test/input.yaml \
--using test/data.yaml \
--key "b[0]" \
inject into "a"
See the Makefile for expanded example usage.
Depencencies:
gpm install
Uses a makefile. Call upon the unit-tests make task:
make tests
Current commands are:
-----------------------Commands:----------------------
help : Test help listing
Helpers
benchmark : Run benchmark
clean : Cleans project dirs (runs all clean cmds)
Tests
clean test : Cleans test dir
tests : Runs all unit tests
test-datafile : Test with datafile to stdout
test-preview : Test preview functionality to stdout
test-stdin : Stdin JSON usage with debug output
test-stdin : Run with stdin JSON usage to stdout
Integration Tests
itest-stdin : Integration test for stdin.
Builds
build : Build all binaries.
build-linux64 : Build linux 64 bit binary.
build-darwin64 : Build darwin 64 bit binary.
clean-target : Cleans build targets dir.
------------------------------------------------------
Comments:
- 1ms == 1000000ns
Test Runs Time/Op Mem/Op Mem/Stats
BenchmarkMapInPlaceSelector 500000 3431 ns/op 546 B/op 19 allocs/op
BenchmarkGetKey 5000000 532 ns/op 66 B/op 3 allocs/op
Comments:
- 3431ns per operation == 0.003431 ms
- 532ns per operation == 0.000532 ms
Test Runs Time/Op Mem/Op Mem/Stats
BenchmarkGetValue 5000000 532 ns/op 67 B/op 3 allocs/op
BenchmarkMapInPlaceSelector 500000 3013 ns/op 550 B/op 16 allocs/op
BenchmarkInject 20000 100228 ns/op 34884 B/op 300 allocs/op
Comments:
- 3013ns per operation == 0.003013 ms
yaml-injector is under the Apache 2.0 license. See the LICENSE file for details.
See TODO file for details.