Skip to content

Commit

Permalink
refactor: we don't wanna export pkg/oonimkall/tasks (ooni#216)
Browse files Browse the repository at this point in the history
* doc: merge the engine and the cli readmes

Part of ooni/probe#1335

* refactor: we don't wanna export pkg/oonimkall/tasks

See ooni/probe#1335
  • Loading branch information
bassosimone committed Feb 3, 2021
1 parent 8e5cc72 commit 8f97784
Show file tree
Hide file tree
Showing 11 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions pkg/oonimkall/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/testdata
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package tasks_test
import (
"testing"

"github.com/ooni/probe-cli/v3/pkg/oonimkall/tasks"
"github.com/ooni/probe-cli/v3/pkg/oonimkall/internal/tasks"
)

func TestDisabledEvents(t *testing.T) {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"testing"
"time"

"github.com/ooni/probe-cli/v3/pkg/oonimkall/tasks"
"github.com/ooni/probe-cli/v3/pkg/oonimkall/internal/tasks"
)

func TestRunnerMaybeLookupBackendsFailure(t *testing.T) {
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion pkg/oonimkall/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import (

"github.com/ooni/probe-cli/v3/internal/engine/atomicx"
"github.com/ooni/probe-cli/v3/internal/engine/runtimex"
"github.com/ooni/probe-cli/v3/pkg/oonimkall/tasks"
"github.com/ooni/probe-cli/v3/pkg/oonimkall/internal/tasks"
)

// Task is an asynchronous task running an experiment. It mimics the
Expand Down
2 changes: 1 addition & 1 deletion pkg/oonimkall/task_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/ooni/probe-cli/v3/internal/engine/model"
"github.com/ooni/probe-cli/v3/pkg/oonimkall"
"github.com/ooni/probe-cli/v3/pkg/oonimkall/tasks"
"github.com/ooni/probe-cli/v3/pkg/oonimkall/internal/tasks"
)

type eventlike struct {
Expand Down

0 comments on commit 8f97784

Please sign in to comment.