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

Unified Diff: cipd/client/cipd/local/manifest_test.go

Issue 2640703002: Change CIPD internal pkgs directory layout to use numeric indices. (Closed)
Patch Set: Add tests for numSet, fix bugs found Created 3 years, 11 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
« cipd/client/cipd/local/deployer.go ('K') | « cipd/client/cipd/local/manifest.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cipd/client/cipd/local/manifest_test.go
diff --git a/cipd/client/cipd/local/manifest_test.go b/cipd/client/cipd/local/manifest_test.go
deleted file mode 100644
index c56d330f73233367892fad178dfab9641fd5a7ac..0000000000000000000000000000000000000000
--- a/cipd/client/cipd/local/manifest_test.go
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2014 The LUCI Authors. All rights reserved.
-// Use of this source code is governed under the Apache License, Version 2.0
-// that can be found in the LICENSE file.
-
-package local
-
-import (
- "bytes"
- "strings"
- "testing"
-
- . "github.com/smartystreets/goconvey/convey"
-)
-
-func TestReadManifest(t *testing.T) {
- var goodManifest = `{
- "format_version": "1",
- "package_name": "package/name"
-}`
-
- Convey("readManifest can read valid manifest", t, func() {
- manifest, err := readManifest(strings.NewReader(goodManifest))
- So(manifest, ShouldResemble, Manifest{
- FormatVersion: "1",
- PackageName: "package/name",
- })
- So(err, ShouldBeNil)
- })
-
- Convey("readManifest rejects invalid manifest", t, func() {
- manifest, err := readManifest(strings.NewReader("I'm not a manifest"))
- So(manifest, ShouldResemble, Manifest{})
- So(err, ShouldNotBeNil)
- })
-
- Convey("writeManifest works", t, func() {
- buf := &bytes.Buffer{}
- m := Manifest{
- FormatVersion: "1",
- PackageName: "package/name",
- }
- So(writeManifest(&m, buf), ShouldBeNil)
- So(string(buf.Bytes()), ShouldEqual, goodManifest)
- })
-}
« cipd/client/cipd/local/deployer.go ('K') | « cipd/client/cipd/local/manifest.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698