Skip to content

Commit

Permalink
docs: hide internal compute utils
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Buchanan committed Mar 16, 2018
1 parent f51d2c1 commit 0430b40
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 22 deletions.
2 changes: 1 addition & 1 deletion compute/hpc_backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ func (b *HPCBackend) setupTemplatedHPCSubmit(task *tes.Task) (string, error) {
confPath := path.Join(workdir, "worker.conf.yml")
config.ToYamlFile(b.Conf, confPath)

funnelPath, err := DetectFunnelBinaryPath()
funnelPath, err := detectFunnelBinaryPath()
if err != nil {
return "", err
}
Expand Down
2 changes: 1 addition & 1 deletion compute/hpc_backend_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func TestSetupTemplatedHPCSubmit(t *testing.T) {
t.Fatal(rerr)
}

binaryPath, err := DetectFunnelBinaryPath()
binaryPath, err := detectFunnelBinaryPath()
if err != nil {
t.Fatal(err)
}
Expand Down
4 changes: 2 additions & 2 deletions compute/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"os"
)

// DetectFunnelBinaryPath detects the path to the "funnel" binary
func DetectFunnelBinaryPath() (string, error) {
// detectFunnelBinaryPath detects the path to the "funnel" binary
func detectFunnelBinaryPath() (string, error) {
path, err := os.Executable()
if err != nil {
return "", fmt.Errorf("Failed to detect path of funnel binary")
Expand Down
8 changes: 2 additions & 6 deletions examples/examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,9 @@ import (
)

func TestExamplesAreValid(t *testing.T) {
for _, en := range AssetNames() {
tb, err := Asset(en)
if err != nil {
t.Fatal(err)
}
for en, tb := range Examples() {
var task tes.Task
err = jsonpb.UnmarshalString(string(tb), &task)
err := jsonpb.UnmarshalString(tb, &task)
if err != nil {
t.Fatal("unmarshal failed", en, err)
}
Expand Down
12 changes: 0 additions & 12 deletions worker/noop.go

This file was deleted.

0 comments on commit 0430b40

Please sign in to comment.