This commit is contained in:
GoEdgeLab
2024-07-27 15:42:50 +08:00
parent d511145bc5
commit c19be78e0d
524 changed files with 1817 additions and 1346 deletions

View File

@@ -3,10 +3,11 @@
package expires_test
import (
"testing"
"github.com/TeaOSLab/EdgeNode/internal/utils/expires"
"github.com/iwind/TeaGo/assert"
"github.com/iwind/TeaGo/logs"
"testing"
)
func TestNewIdKeyMap(t *testing.T) {

View File

@@ -1,8 +1,9 @@
package expires
import (
"github.com/TeaOSLab/EdgeNode/internal/utils/zero"
"sync"
"github.com/TeaOSLab/EdgeNode/internal/utils/zero"
)
type ItemMap = map[uint64]zero.Zero

View File

@@ -1,17 +1,18 @@
package expires_test
import (
"math"
"math/rand"
"runtime"
"testing"
"time"
"github.com/TeaOSLab/EdgeNode/internal/utils/expires"
"github.com/TeaOSLab/EdgeNode/internal/utils/fasttime"
"github.com/TeaOSLab/EdgeNode/internal/utils/testutils"
"github.com/iwind/TeaGo/assert"
"github.com/iwind/TeaGo/logs"
timeutil "github.com/iwind/TeaGo/utils/time"
"math"
"math/rand"
"runtime"
"testing"
"time"
)
func TestList_Add(t *testing.T) {

View File

@@ -3,10 +3,11 @@
package expires
import (
"github.com/TeaOSLab/EdgeNode/internal/utils/goman"
"github.com/TeaOSLab/EdgeNode/internal/utils/zero"
"sync"
"time"
"github.com/TeaOSLab/EdgeNode/internal/utils/goman"
"github.com/TeaOSLab/EdgeNode/internal/utils/zero"
)
var SharedManager = NewManager()