Cosmos Nicolaou | b1c49cd | 2015-02-24 15:24:08 -0800 | [diff] [blame] | 1 | // Copyright 2015 The Vanadium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
Jiri Simsa | e7fc94d | 2015-02-25 12:12:07 -0800 | [diff] [blame] | 4 | |
Suharsh Sivakumar | d19c95d | 2015-02-19 14:44:50 -0800 | [diff] [blame] | 5 | // This file was auto-generated via go generate. |
| 6 | // DO NOT UPDATE MANUALLY |
| 7 | package flag |
| 8 | |
| 9 | import "fmt" |
| 10 | import "testing" |
| 11 | import "os" |
| 12 | |
Jiri Simsa | ffceefa | 2015-02-28 11:03:34 -0800 | [diff] [blame] | 13 | import "v.io/x/ref/lib/modules" |
| 14 | import "v.io/x/ref/lib/testutil" |
Suharsh Sivakumar | d19c95d | 2015-02-19 14:44:50 -0800 | [diff] [blame] | 15 | |
| 16 | func init() { |
| 17 | modules.RegisterChild("tamFromFlag", ``, tamFromFlag) |
| 18 | } |
| 19 | |
| 20 | func TestMain(m *testing.M) { |
| 21 | testutil.Init() |
Cosmos Nicolaou | 42a1736 | 2015-03-10 16:40:18 -0700 | [diff] [blame] | 22 | if modules.IsModulesChildProcess() { |
Suharsh Sivakumar | d19c95d | 2015-02-19 14:44:50 -0800 | [diff] [blame] | 23 | if err := modules.Dispatch(); err != nil { |
| 24 | fmt.Fprintf(os.Stderr, "modules.Dispatch failed: %v\n", err) |
| 25 | os.Exit(1) |
| 26 | } |
| 27 | return |
| 28 | } |
| 29 | os.Exit(m.Run()) |
| 30 | } |