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

Unified Diff: impl/memory/module_test.go

Issue 2302743002: Interface update, per-method Contexts. (Closed)
Patch Set: Lightning talk licenses. Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « impl/memory/module.go ('k') | impl/memory/race_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: impl/memory/module_test.go
diff --git a/impl/memory/module_test.go b/impl/memory/module_test.go
index 524f5d654ba48c5cb820fb8fdb9e755282bb0b98..6c96f289ef742e1c8329e446a8c793455dd616f4 100644
--- a/impl/memory/module_test.go
+++ b/impl/memory/module_test.go
@@ -16,18 +16,17 @@ import (
func TestModule(t *testing.T) {
Convey("NumInstances", t, func() {
c := Use(context.Background())
- m := module.Get(c)
- i, err := m.NumInstances("foo", "bar")
+ i, err := module.NumInstances(c, "foo", "bar")
So(i, ShouldEqual, 1)
So(err, ShouldBeNil)
- So(m.SetNumInstances("foo", "bar", 42), ShouldBeNil)
- i, err = m.NumInstances("foo", "bar")
+ So(module.SetNumInstances(c, "foo", "bar", 42), ShouldBeNil)
+ i, err = module.NumInstances(c, "foo", "bar")
So(i, ShouldEqual, 42)
So(err, ShouldBeNil)
- i, err = m.NumInstances("foo", "baz")
+ i, err = module.NumInstances(c, "foo", "baz")
So(i, ShouldEqual, 1)
So(err, ShouldBeNil)
})
« no previous file with comments | « impl/memory/module.go ('k') | impl/memory/race_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698