From 88d0937728e277518a2c16c6e8b52cabdfae7121 Mon Sep 17 00:00:00 2001 From: Ilia Sergunin Date: Wed, 14 Feb 2024 04:41:39 +0400 Subject: [PATCH] 1. added v2 in CHANGELOG.md 2. fixed linter --- CHANGELOG.md | 12 ++++++++++++ trm/drivers/mock/log.go | 1 + trm/drivers/test/sql.go | 7 +++---- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e2754e..23a38e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [2.0.0-rc-8] - 2024-01-04 + +### Fixed + +- gouroutine leak. + +## [2.0.0-rc-7] - 2024-01-04 + +### Changes + +- Transferred drivers in separated modules. + ## [1.4.0] - 2023-09-01 ### Added diff --git a/trm/drivers/mock/log.go b/trm/drivers/mock/log.go index daf08c1..cba7a60 100644 --- a/trm/drivers/mock/log.go +++ b/trm/drivers/mock/log.go @@ -1,4 +1,5 @@ // Package mock implements dependencies for testing. +// Deprecated: You should NOT use this package in your application code. // //revive:disable:unexported-return //revive:disable:exported diff --git a/trm/drivers/test/sql.go b/trm/drivers/test/sql.go index 13c3597..9c070e4 100644 --- a/trm/drivers/test/sql.go +++ b/trm/drivers/test/sql.go @@ -1,6 +1,5 @@ // Package test provides a set of utilities for testing. -// You should not use this package in your application code. -// TODO try to use Deprecated for the package +// Deprecated: You should NOT use this package in your application code. package test import ( @@ -13,7 +12,7 @@ import ( // NewDBMock returns a new sql.DB and sqlmock. // -//nolint:ireturn +//nolint:ireturn,nolintlint func NewDBMock() (*sql.DB, sqlmock.Sqlmock) { db, dbmock, _ := sqlmock.New() @@ -22,7 +21,7 @@ func NewDBMock() (*sql.DB, sqlmock.Sqlmock) { // NewDBMockWithClose returns a new sql.DB and sqlmock, and close it after test. // -//nolint:ireturn +//nolint:ireturn,nolintlint func NewDBMockWithClose(t *testing.T) (*sql.DB, sqlmock.Sqlmock) { db, dbmock := NewDBMock()