This commit is contained in:
Bel LaPointe
2025-04-24 19:56:54 -06:00
parent cd159aba1b
commit f7e82ff588
3 changed files with 45 additions and 0 deletions

18
main_test.go Normal file
View File

@@ -0,0 +1,18 @@
package main_test
import (
"context"
"os/signal"
"show-rss/src/cmd"
"syscall"
"testing"
)
func TestCmdMain(t *testing.T) {
ctx, can := signal.NotifyContext(context.Background(), syscall.SIGINT)
defer can()
if err := cmd.Main(ctx); err != nil {
t.Fatal(err)
}
}