AlexxNica / packngo

Packet Go Api Client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

packngo

Packet Go Api Client

Committing

Before committing, it's a good idea to run gofmt -w *.go. (gofmt)

Acceptance Tests

If you want to run tests against the actual Packet API, you must set envvar PACKET_TEST_ACTUAL_API to non-empty string for the go test. The device tests wait for the device creation, so it's best to run a few in parallel.

To run all the tests, you can do

$ PACKNGO_TEST_ACTUAL_API=1 go test -v -parallel 8

It's also useful to run only single acceptance test at a time:

$ PACKNGO_TEST_ACTUAL_API=1 go test -v -run=TestAccDeviceBasic

About

Packet Go Api Client

License:Other


Languages

Language:Go 100.0%