mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-04 13:52:26 +08:00
27 lines
597 B
Go
27 lines
597 B
Go
// Package main provides ...
|
|
package main
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/eiblog/eiblog/setting"
|
|
)
|
|
|
|
func TestSuperFeedr(t *testing.T) {
|
|
sf := superfeedr{}
|
|
sf.PingFunc("https://deepzz.com/rss.html")
|
|
}
|
|
|
|
func TestPingRPC(t *testing.T) {
|
|
pr := pingRPC{
|
|
MethodName: "weblogUpdates.extendedPing",
|
|
}
|
|
pr.Params.Param = [4]rpcValue{
|
|
rpcValue{Value: Ei.BTitle},
|
|
rpcValue{Value: "https://" + setting.Conf.Mode.Domains[0]},
|
|
rpcValue{Value: "https://deepzz.com/post/gdb-debug.html"},
|
|
rpcValue{Value: "https://deepzz.com/rss.html"},
|
|
}
|
|
pr.PingFunc("https://deepzz.com/post/gdb-debug.html")
|
|
}
|