test: improve example

This commit is contained in:
Fu Diwei
2025-01-08 19:37:57 +08:00
parent 6badc0f419
commit f99dd4f89a
32 changed files with 39 additions and 39 deletions

View File

@@ -30,7 +30,7 @@ func init() {
/*
Shell command to run this test:
go test -v bark_test.go -args \
go test -v ./bark_test.go -args \
--CERTIMATE_NOTIFIER_BARK_SERVERURL="https://example.com/your-server-url" \
--CERTIMATE_NOTIFIER_BARK_DEVICEKEY="your-device-key"
*/

View File

@@ -30,7 +30,7 @@ func init() {
/*
Shell command to run this test:
go test -v dingtalk_test.go -args \
go test -v ./dingtalk_test.go -args \
--CERTIMATE_NOTIFIER_DINGTALK_URL="https://example.com/your-webhook-url"
*/
func TestNotify(t *testing.T) {

View File

@@ -40,7 +40,7 @@ func init() {
/*
Shell command to run this test:
go test -v email_test.go -args \
go test -v ./email_test.go -args \
--CERTIMATE_NOTIFIER_EMAIL_SMTPHOST="smtp.example.com" \
--CERTIMATE_NOTIFIER_EMAIL_SMTPPORT=465 \
--CERTIMATE_NOTIFIER_EMAIL_SMTPTLS=true \

View File

@@ -26,7 +26,7 @@ func init() {
/*
Shell command to run this test:
go test -v lark_test.go -args \
go test -v ./lark_test.go -args \
--CERTIMATE_NOTIFIER_LARK_WEBHOOKURL="https://example.com/your-webhook-url"
*/
func TestNotify(t *testing.T) {

View File

@@ -26,7 +26,7 @@ func init() {
/*
Shell command to run this test:
go test -v serverchan_test.go -args \
go test -v ./serverchan_test.go -args \
--CERTIMATE_NOTIFIER_SERVERCHAN_URL="https://example.com/your-webhook-url" \
*/
func TestNotify(t *testing.T) {

View File

@@ -30,7 +30,7 @@ func init() {
/*
Shell command to run this test:
go test -v telegram_test.go -args \
go test -v ./telegram_test.go -args \
--CERTIMATE_NOTIFIER_TELEGRAM_APITOKEN="your-api-token" \
--CERTIMATE_NOTIFIER_TELEGRAM_CHATID=123456
*/

View File

@@ -26,7 +26,7 @@ func init() {
/*
Shell command to run this test:
go test -v webhook_test.go -args \
go test -v ./webhook_test.go -args \
--CERTIMATE_NOTIFIER_WEBHOOK_URL="https://example.com/your-webhook-url"
*/
func TestNotify(t *testing.T) {

View File

@@ -26,7 +26,7 @@ func init() {
/*
Shell command to run this test:
go test -v serverchan_test.go -args \
go test -v ./wecom_test.go -args \
--CERTIMATE_NOTIFIER_WECOM_WEBHOOKURL="https://example.com/your-webhook-url" \
*/
func TestNotify(t *testing.T) {