mirror of
https://github.com/Quad4-Software/Reticulum-Go
synced 2026-08-29 23:48:44 -04:00
20 lines
366 B
Go
20 lines
366 B
Go
// SPDX-License-Identifier: Apache-2.0
|
|
// Copyright (c) 2024-2026 Quad4.io
|
|
|
|
package interfaces
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"quad4/reticulum-go/pkg/backbone"
|
|
)
|
|
|
|
func testBackboneHub(t *testing.T) *backbone.Hub {
|
|
t.Helper()
|
|
hub, err := backbone.Init(backbone.BackendGo)
|
|
if err != nil {
|
|
t.Fatalf("backbone.Init: %v", err)
|
|
}
|
|
t.Cleanup(backbone.Shutdown)
|
|
return hub
|
|
}
|