You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
372 B

/*
*
@author: sre
@date: 2023/11/19 0019
@desc: todo
*
*/
package main
import (
"fmt"
"testing"
)
func TestGetHostListFromCSV(t *testing.T) {
hosts, err := GetHostListFromCSV()
if err != nil {
fmt.Println(err)
}
for _, host := range hosts {
fmt.Println(host)
}
}
func TestStrclean(t *testing.T) {
s1 := "\"30.1 30.251.46,\","
fmt.Println(strClean(s1))
}