philippgille / serve

serve starts a simple temporary static file server in your current directory and prints your IP address to share with colleagues
Mozilla Public License 2.0
153 stars 15 forks source link

Add tests #17

Open philippgille opened 6 years ago

philippgille commented 6 years ago

Go main packages can be tested as well, so add a serve_test.go and write some tests.

Consider moving the helper functions into their own package, where it makes sense to export them, which in turn makes it more idiomatic to test them (instead of using the main package in serve_test.go).