-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprocess_test.go
More file actions
45 lines (39 loc) · 958 Bytes
/
process_test.go
File metadata and controls
45 lines (39 loc) · 958 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package seed_test
import (
"testing"
"github.com/glvd/seed"
"github.com/glvd/seed/task"
_ "github.com/mattn/go-sqlite3"
)
// TestProcess ...
func TestProcess(t *testing.T) {
seeder := seed.NewSeed()
proc := seed.NewProcess()
//tsk := seed.NewTask()
seeder.Register(proc)
seeder.Start()
info := &task.Information{
InfoType: task.InfoTypeBSON,
Path: "D:\\videoall\\videos",
ResourcePath: "",
ProcList: nil,
Start: 0,
}
seeder.RunTask(info.Task())
//tsk.AddTask(info)
//proc.AddTask(seed.InformationTask(info))seed.InformationTask(info)
seeder.Wait()
}
// TestName ...
func TestName(t *testing.T) {
//t.Log(onlyNo("file-09-B.name"))
//t.Log(onlyNo("file-09B.name"))
//t.Log(onlyNo("file-001R"))
//t.Log(onlyNo(".file"))
//t.Log(onlyNo("."))
//t.Log(onlyNo(""))
//t.Log(NumberIndex("file-09"))
//t.Log(NumberIndex("file-09-C"))
//t.Log(NumberIndex("file-09-B"))
//t.Log(NumberIndex("file-09-A"))
}