mirror of https://github.com/statping/statping
52 lines
1.3 KiB
Go
52 lines
1.3 KiB
Go
![]() |
// Statup
|
||
|
// Copyright (C) 2018. Hunter Long and the project contributors
|
||
|
// Written by Hunter Long <info@socialeck.com> and the project contributors
|
||
|
//
|
||
|
// https://github.com/hunterlong/statup
|
||
|
//
|
||
|
// The licenses for most software and other practical works are designed
|
||
|
// to take away your freedom to share and change the works. By contrast,
|
||
|
// the GNU General Public License is intended to guarantee your freedom to
|
||
|
// share and change all versions of a program--to make sure it remains free
|
||
|
// software for all its users.
|
||
|
//
|
||
|
// You should have received a copy of the GNU General Public License
|
||
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||
|
|
||
|
package plugin
|
||
|
|
||
|
import (
|
||
![]() |
"github.com/hunterlong/statup/source"
|
||
![]() |
"github.com/hunterlong/statup/types"
|
||
![]() |
"github.com/hunterlong/statup/utils"
|
||
![]() |
"testing"
|
||
|
)
|
||
|
|
||
|
var (
|
||
![]() |
example types.PluginActions
|
||
![]() |
)
|
||
|
|
||
![]() |
func init() {
|
||
|
utils.InitLogs()
|
||
|
source.Assets()
|
||
|
}
|
||
|
|
||
![]() |
func TestLoadPlugin(t *testing.T) {
|
||
|
//err := LoadPlugin(dir+"/plugins/example.so")
|
||
|
//assert.Nil(t, err)
|
||
![]() |
}
|
||
|
|
||
![]() |
func TestAdd(t *testing.T) {
|
||
![]() |
//err := Add(example)
|
||
|
//assert.NotNil(t, err)
|
||
![]() |
}
|
||
|
|
||
|
func TestSelect(t *testing.T) {
|
||
![]() |
//err := example.GetInfo()
|
||
|
//assert.Equal(t, "", err.Name)
|
||
![]() |
}
|
||
|
|
||
![]() |
//func TestAddRoute(t *testing.T) {
|
||
|
// example.AddRoute("/plugin_example", "GET", setupHandler)
|
||
|
//}
|