12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- package space
- import (
- "context"
- "reflect"
- "testing"
- "go-common/app/interface/main/app-interface/conf"
- )
- func TestNew(t *testing.T) {
- type args struct {
- c *conf.Config
- }
- tests := []struct {
- name string
- args args
- wantS *Service
- }{
- // TODO: Add test cases.
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- if gotS := New(tt.args.c); !reflect.DeepEqual(gotS, tt.wantS) {
- t.Errorf("New() = %v, want %v", gotS, tt.wantS)
- }
- })
- }
- }
- func TestService_addCache(t *testing.T) {
- type args struct {
- f func()
- }
- tests := []struct {
- name string
- s *Service
- args args
- }{
- // TODO: Add test cases.
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- tt.s.addCache(tt.args.f)
- })
- }
- }
- func TestService_cacheproc(t *testing.T) {
- tests := []struct {
- name string
- s *Service
- }{
- // TODO: Add test cases.
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- tt.s.cacheproc()
- })
- }
- }
- func TestService_Ping(t *testing.T) {
- type args struct {
- c context.Context
- }
- tests := []struct {
- name string
- s *Service
- args args
- wantErr bool
- }{
- // TODO: Add test cases.
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- if err := tt.s.Ping(tt.args.c); (err != nil) != tt.wantErr {
- t.Errorf("Service.Ping() error = %v, wantErr %v", err, tt.wantErr)
- }
- })
- }
- }
|