3 ms·
Why not? Testing packer would mean specifying a large number of machine configurations, building them, and verifying the output images. Why would that be smalle
by yjftsjthsd-h 7y ago
Why not? Testing packer would mean specifying a large number of machine configurations, building them, and verifying the output images. Why would that be smaller than the actual code?
- jen20 7y agoI just cloned Packer from the master branch, and via a (very) crude mechanism looked at the number of lines of code in `_test.go` files vs the number of lines of code in `.go` files which do not have the `test` build tag, excluding vendored libraries. There are approximately 60,000 lines of test code, vs 149000 lines of non-test code. Other HashiCorp products have a much higher test to production code ratio, but it is by no means uniformly 10:1.