graph/db: implement ForEachNodeChannel
Which lets us then run `TestIncompleteChannelPolicies` and `BenchmarkForEachChannel` against our SQL backends.
This commit is contained in:
3 files changed
+38
-2
No files matched your search
@@ -3041,7 +3041,7 @@ func TestIncompleteChannelPolicies(t *testing.T) {
|
||||
t.Parallel()
|
||||
ctx := context.Background()
|
||||
|
||||
graph := MakeTestGraph(t)
|
||||
graph := MakeTestGraphNew(t)
|
||||
|
||||
// Create two nodes.
|
||||
node1 := createTestVertex(t)
|
||||
@@ -4110,7 +4110,7 @@ func TestBatchedUpdateEdgePolicy(t *testing.T) {
|
||||
// BenchmarkForEachChannel is a benchmark test that measures the number of
|
||||
// allocations and the total memory consumed by the full graph traversal.
|
||||
func BenchmarkForEachChannel(b *testing.B) {
|
||||
graph := MakeTestGraph(b)
|
||||
graph := MakeTestGraphNew(b)
|
||||
|
||||
const numNodes = 100
|
||||
const numChannels = 4
|
||||
|
||||
Reference in new issue
Block a user