Skip to content

Commit

Permalink
增加license排除规则
Browse files Browse the repository at this point in the history
  • Loading branch information
hookokoko committed Nov 3, 2023
1 parent a78d9d7 commit 519d7dc
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .licenserc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"**/*.go": "// Copyright 2021 ecodeclub",
"**/*.{yml}": "# Copyright 2021 ecodeclub",
"**/*.sh": "# Copyright 2021 ecodeclub"
"**/*.sh": "# Copyright 2021 ecodeclub",

"ignore": [
"**/*mock*"
]
}
14 changes: 14 additions & 0 deletions pkg/iterator/iterator.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2021 ecodeclub
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package iterator

type ListIter[T []E, E any] struct {
Expand Down
14 changes: 14 additions & 0 deletions pkg/iterator/iterator_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2021 ecodeclub
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package iterator

import (
Expand Down
14 changes: 14 additions & 0 deletions pkg/iterator/type.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2021 ecodeclub
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package iterator

type Iterable[T any] interface {
Expand Down
20 changes: 17 additions & 3 deletions task_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2021 ecodeclub
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package notify_go

import (
Expand All @@ -16,7 +30,7 @@ import (
/*
测试场景:
1. 调用一次:超时、不超时没有返回error、不超时返回error
2. 并发调用多次:一般不存在这种场景, 同一个TrigerTask只会调用一次, 不同的task间并发安全
2. 并发调用多次:一般不存在这种场景, 同一个TriggerTask只会调用一次, 不同的task间并发安全
*/
func TestTriggerTask_Send(t *testing.T) {
t.Parallel()
Expand Down Expand Up @@ -141,7 +155,7 @@ func TestCircleTask_fillCronTimes(t *testing.T) {
want []time.Time
}{
{
name: "every minute, 历史时间全部被过滤",
name: "every minute 历史时间全部被过滤",
args: args{
expr: "* * * * *",
begin: func() time.Time {
Expand Down Expand Up @@ -190,7 +204,7 @@ func TestCircleTask_fillCronTimes(t *testing.T) {
}(),
},
{
name: "every minte",
name: "every minute",
args: args{
expr: "* * * * *",
begin: func() time.Time {
Expand Down

0 comments on commit 519d7dc

Please sign in to comment.