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.
24 lines
414 B
24 lines
414 B
package goConcurrency
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func TestWalkDir(t *testing.T) {
|
|
dirs := []string{
|
|
//`D:\apps\mashibing`,
|
|
//`D:\apps\kubernetes`,
|
|
}
|
|
fmt.Println(WalkDir(dirs...))
|
|
}
|
|
|
|
func TestQuickSortConcurrency(t *testing.T) {
|
|
//randArr := []int{
|
|
// 19, 21, 0, -8, 11, 12, 19, 7, 25, 33, 2, 5,
|
|
//}
|
|
randArr := GenerateRandArr(10000)
|
|
sortArr := QuickSortConcurrency(randArr)
|
|
fmt.Println(sortArr)
|
|
}
|