stub
This commit is contained in:
18
main_test.go
Normal file
18
main_test.go
Normal 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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user