Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(12)

Delta Between Two Patch Sets: misc/dashboard/builder/update_test.go

Issue 7174046: code review 7174046: misc/dashboard/builder: automatic update functionality
Left Patch Set: diff -r 7929ab4ff133 https://code.google.com/p/go Created 12 years, 1 month ago
Right Patch Set: diff -r bfb45be43e2b https://code.google.com/p/go Created 12 years ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « misc/dashboard/builder/update.go ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 // Copyright 2013 The Go Authors. All rights reserved. 1 // Copyright 2013 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 package main 5 package main
6 6
7 import ( 7 import (
8 "runtime" 8 "runtime"
9 "testing" 9 "testing"
10 ) 10 )
11 11
12 func TestLatestVersion(t *testing.T) { 12 func TestLatestVersion(t *testing.T) {
13 » goroot = runtime.GOROOT() 13 » goroot := &Repo{Path: runtime.GOROOT()}
14 » v, err := latestVersion() 14 » v, err := latestVersion(goroot)
15 if err != nil { 15 if err != nil {
16 t.Fatal(err) 16 t.Fatal(err)
17 } 17 }
18 if v != builderVersion { 18 if v != builderVersion {
19 t.Errorf("got %v, want %v", v, builderVersion) 19 t.Errorf("got %v, want %v", v, builderVersion)
20 } 20 }
21 } 21 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b