package observer import ( "reflect" "testing" ) func TestFib(t *testing.T) { type args struct { n int } tests := []struct { name string args args want chan int }{ { name: "测试管道函数-斐波那契数列", args: args{ n: 50, }, want: make(chan int), }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { if got := Fib(tt.args.n); !reflect.DeepEqual(got, tt.want) { t.Errorf("Fib() = %v, want %v", got, tt.want) } }) } }