add ping.go

This commit is contained in:
deepzz0
2016-10-10 22:41:54 +08:00
parent 9788b43e32
commit 0dc40d518b
5 changed files with 57 additions and 7 deletions

14
ping_test.go Normal file
View File

@@ -0,0 +1,14 @@
// Package main provides ...
package main
import (
"fmt"
"testing"
"github.com/eiblog/eiblog/setting"
)
func TestPing(t *testing.T) {
sf := Superfeedr{URL: fmt.Sprintf("https://%s.superfeedr.com", setting.Conf.Superfeedr)}
sf.PingFunc("https://deepzz.com/rss.html")
}