Skip to content

Commit

Permalink
1. added v2 in CHANGELOG.md
Browse files Browse the repository at this point in the history
2. fixed linter
  • Loading branch information
maranqz committed Feb 14, 2024
1 parent f86dce8 commit 88d0937
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions trm/drivers/mock/log.go
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 3 additions & 4 deletions trm/drivers/test/sql.go
Original file line number Diff line number Diff line change
@@ -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 (
Expand All @@ -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()

Expand All @@ -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()

Expand Down

0 comments on commit 88d0937

Please sign in to comment.