This commit is contained in:
Fran Bull
2024-03-26 13:59:00 -07:00
committed by Kevin Liang
parent 4cbef20569
commit 7413ad4c5f
5 changed files with 132 additions and 0 deletions

View File

@@ -6,6 +6,8 @@ package appctest
import (
"net/netip"
"slices"
"tailscale.com/appc/routeinfo"
)
// RouteCollector is a test helper that collects the list of routes advertised
@@ -32,6 +34,14 @@ func (rc *RouteCollector) UnadvertiseRoute(toRemove ...netip.Prefix) error {
return nil
}
func (rc *RouteCollector) StoreRouteInfo(ri *routeinfo.RouteInfo) error {
return nil
}
func (rc *RouteCollector) ReadRouteInfo() (*routeinfo.RouteInfo, error) {
return nil, nil
}
// RemovedRoutes returns the list of routes that were removed.
func (rc *RouteCollector) RemovedRoutes() []netip.Prefix {
return rc.removedRoutes