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

Side by Side Diff: common/cmpbin/common_test.go

Issue 1219323002: Rename funnybase and add more serializations. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: don't need goconvey file Created 5 years, 5 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package cmpbin
6
7 import (
8 "flag"
9 "fmt"
10 "time"
11 )
12
13 var seed = flag.Int64("test.seed", time.Now().UnixNano(), "random seed for testi ng")
14
15 var randomTestSize = 1000
16
17 func init() {
18 flag.Parse()
19 fmt.Println("cmpbin.seed =", *seed)
M-A Ruel 2015/07/06 23:21:34 Please remove
iannucci 2015/07/07 00:03:27 This is to enable randomized test failures to be r
20 }
21
22 type fakeWriter struct{ count int }
23
24 func (f *fakeWriter) WriteByte(byte) error {
25 if f.count == 0 {
26 return fmt.Errorf("nope")
27 }
28 f.count--
29 return nil
30 }
OLDNEW
« no previous file with comments | « common/cmpbin/binary_vals_test.go ('k') | common/cmpbin/doc.go » ('j') | common/cmpbin/doc.go » ('J')

Powered by Google App Engine
This is Rietveld 408576698