Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2730)

Unified Diff: build_scheduler/go/task_scheduler/task_candidate_test.go

Issue 2296763008: [task scheduler] Move files from build_scheduler/ to task_scheduler/ (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: build_scheduler/go/task_scheduler/task_candidate_test.go
diff --git a/build_scheduler/go/task_scheduler/task_candidate_test.go b/build_scheduler/go/task_scheduler/task_candidate_test.go
deleted file mode 100644
index 40b4853d5693287e9a1e925ef2a03689dd739603..0000000000000000000000000000000000000000
--- a/build_scheduler/go/task_scheduler/task_candidate_test.go
+++ /dev/null
@@ -1,29 +0,0 @@
-package task_scheduler
-
-import (
- "testing"
-
- "github.com/stretchr/testify/assert"
-)
-
-func TestTaskCandidateId(t *testing.T) {
- t1 := makeTaskCandidate("task1", []string{"k:v"})
- t1.Repo = "Myrepo"
- t1.Revision = "abc123"
- id1 := t1.MakeId()
- repo1, name1, rev1, err := parseId(id1)
- assert.NoError(t, err)
- assert.Equal(t, t1.Repo, repo1)
- assert.Equal(t, t1.Name, name1)
- assert.Equal(t, t1.Revision, rev1)
-
- badIds := []string{
- "",
- "taskCandidate|a|b|",
- "20160831T000018.497703717Z_000000000000015b",
- }
- for _, id := range badIds {
- _, _, _, err := parseId(id)
- assert.Error(t, err)
- }
-}
« no previous file with comments | « build_scheduler/go/task_scheduler/task_candidate.go ('k') | build_scheduler/go/task_scheduler/task_scheduler.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698