-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
355c722
commit 28b4fb3
Showing
24 changed files
with
128 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,6 @@ flags: | |
package: | ||
paths: | ||
- "*.go" | ||
- "ensurer/**" | ||
- "ensuring/**" | ||
- "ensurepkg/**" | ||
- "internal/**" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
// Package ensurepkg contains the implementation for the ensure test framework. | ||
// Use ensure.New to create a new instance of Ensure. | ||
// | ||
// Deprecated: Use the ensurer package instead. | ||
// Deprecated: Use the ensuring package instead. | ||
package ensurepkg | ||
|
||
import "github.com/JosiahWitt/ensure/ensurer" | ||
import "github.com/JosiahWitt/ensure/ensuring" | ||
|
||
// T implements a subset of methods on [testing.T]. | ||
// More methods may be added to T with a minor ensure release. | ||
// | ||
// Deprecated: Use [ensurer.T] instead. | ||
type T = ensurer.T | ||
// Deprecated: Use [ensuring.T] instead. | ||
type T = ensuring.T | ||
|
||
// Ensure ensures the actual value is correct using [Chain]. | ||
// Ensure also has methods that can be called directly. | ||
// | ||
// Deprecated: Use [ensurer.E] instead. | ||
type Ensure = ensurer.E | ||
// Deprecated: Use [ensuring.E] instead. | ||
type Ensure = ensuring.E | ||
|
||
// Chain chains assertions to the ensure function call. | ||
// | ||
// Deprecated: Use [ensurer.Chain] instead. | ||
type Chain = ensurer.Chain | ||
// Deprecated: Use [ensuring.Chain] instead. | ||
type Chain = ensuring.Chain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package ensurer | ||
package ensuring | ||
|
||
import ( | ||
"fmt" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package ensurer | ||
package ensuring | ||
|
||
import ( | ||
"errors" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package ensurer_test | ||
package ensuring_test | ||
|
||
import ( | ||
"sync" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package ensurer | ||
package ensuring | ||
|
||
import "github.com/JosiahWitt/ensure/internal/testctx" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package ensurer | ||
package ensuring | ||
|
||
import ( | ||
"github.com/JosiahWitt/ensure/internal/plugins/all" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.