refactor(mlablocatev2): use interfaces, add missing tests, add docs (#384)

This is a very light refactoring of the mlablocatev2 package where we do
the following things:

1. use interfaces rather than depending on other pkgs where possible

2. add a missing test to the test suite

3. write more comprehensive docs (including todo-next comments)
This commit is contained in:
Simone Basso 2021-06-15 19:25:09 +02:00 committed by GitHub
commit d84cf5b69f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 89 additions and 29 deletions

View file

@ -11,7 +11,7 @@ import (
"github.com/apex/log"
)
func TestWithoutProxy(t *testing.T) {
func TestSuccess(t *testing.T) {
client := NewClient(
http.DefaultClient,
log.Log,