blob: 7aef3a8a401d0005f1f314e2fc3f7f37a1e41fb7 [file] [log] [blame] [edit]
// Copyright 2015 The Vanadium 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 fake_test
import (
"testing"
"v.io/v23"
_ "v.io/x/ref/runtime/factories/fake"
)
// Ensure that the fake RuntimeFactory can be used to initialize a fake runtime.
func TestInit(t *testing.T) {
ctx, shutdown := v23.Init()
defer shutdown()
if !ctx.Initialized() {
t.Errorf("Got uninitialized context from Init.")
}
}