Move TestRuntimeCache into non-test file

This commit is contained in:
Jordan Liggitt 2016-03-21 16:21:55 -04:00
parent 4b1b291a9f
commit 1d4c56c2f6

View File

@ -16,8 +16,10 @@ limitations under the License.
package container package container
// TestRunTimeCache embeds runtimeCache with some additional methods for // TestRunTimeCache embeds runtimeCache with some additional methods for testing.
// testing. // It must be declared in the container package to have visibility to runtimeCache.
// It cannot be in a "..._test.go" file in order for runtime_cache_test.go to have cross-package visibility to it.
// (cross-package declarations in test files cannot be used from dot imports if this package is vendored)
type TestRuntimeCache struct { type TestRuntimeCache struct {
runtimeCache runtimeCache
} }