20 lines
686 B
Go
20 lines
686 B
Go
package main
|
|
|
|
import "testing"
|
|
|
|
// R-1347 and R-1348: each seam is CALLED from main.go (an AST walk) — a seam built and never wired is the project's
|
|
// oldest shape.
|
|
func TestR1347_UpdateHeldForgetterIsWiredAtStartup(t *testing.T) {
|
|
lines, _, _ := slice4CallLines(t)
|
|
if len(lines["SetUpdateHeldForgetter"]) == 0 {
|
|
t.Fatal("main.go never calls SetUpdateHeldForgetter — a restored app would stay unwatched until the controller restarts")
|
|
}
|
|
}
|
|
|
|
func TestR1348_HeldNotifyIsWiredAtStartup(t *testing.T) {
|
|
lines, _, _ := slice4CallLines(t)
|
|
if len(lines["SetHeldNotify"]) == 0 {
|
|
t.Fatal("main.go never calls SetHeldNotify — a failed put-back at start-up would mail nobody")
|
|
}
|
|
}
|