2015-03-03 13:38:14 -08:00
|
|
|
// Copyright 2015 The Go Authors. All rights reserved.
|
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
|
|
package ssa
|
|
|
|
|
|
2015-06-12 11:01:13 -07:00
|
|
|
import "testing"
|
|
|
|
|
|
2015-03-03 13:38:14 -08:00
|
|
|
var CheckFunc = checkFunc
|
|
|
|
|
var PrintFunc = printFunc
|
2015-05-28 16:45:33 -07:00
|
|
|
var Opt = opt
|
2015-03-03 13:38:14 -08:00
|
|
|
var Deadcode = deadcode
|
2015-06-04 15:18:27 -07:00
|
|
|
|
2015-06-12 11:01:13 -07:00
|
|
|
type DummyFrontend struct {
|
2015-06-25 14:04:55 -07:00
|
|
|
t testing.TB
|
2015-06-12 11:01:13 -07:00
|
|
|
}
|
2015-06-04 15:18:27 -07:00
|
|
|
|
2015-07-24 11:28:12 -07:00
|
|
|
func (DummyFrontend) StringData(s string) interface{} {
|
2015-06-04 15:18:27 -07:00
|
|
|
return nil
|
|
|
|
|
}
|
2015-06-12 11:01:13 -07:00
|
|
|
|
2015-06-24 14:03:39 -07:00
|
|
|
func (d DummyFrontend) Logf(msg string, args ...interface{}) { d.t.Logf(msg, args...) }
|
|
|
|
|
func (d DummyFrontend) Fatalf(msg string, args ...interface{}) { d.t.Fatalf(msg, args...) }
|
|
|
|
|
func (d DummyFrontend) Unimplementedf(msg string, args ...interface{}) { d.t.Fatalf(msg, args...) }
|