Skip to content

Commit f6b39fc

Browse files
authored
Merge pull request #47 from fredbi/feat/cleanup-before-v3
Feat/cleanup before v3
2 parents 5d65adf + 3bbd617 commit f6b39fc

File tree

94 files changed

+1221
-634
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+1221
-634
lines changed

.claude/CLAUDE.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,12 @@ With 76 assertion functions, this generates 608 functions automatically.
9797
### Dependency Isolation Strategy
9898
- **internal/spew**: Internalized copy of go-spew for pretty-printing values
9999
- **internal/difflib**: Internalized copy of go-difflib for generating diffs
100-
- **assert/yaml**: Stub package that panics by default if YAML assertions are used
100+
- **internal/assertions/enable**: Internal stubs that panic by default if YAML/color assertions are used
101+
- **enable/stubs**: Public API for enabling optional features (yaml, colors)
101102
- **enable/yaml**: Optional module that activates YAML support via init() when imported
103+
- **enable/colors**: Optional module that activates colorized output via init() when imported
102104

103-
The "enable" pattern allows YAML functionality to be opt-in: import `_ "github.com/go-openapi/testify/v2/enable/yaml"` to activate YAML assertions without forcing a dependency on all users.
105+
The "enable" pattern allows optional functionality to be opt-in: import `_ "github.com/go-openapi/testify/v2/enable/yaml"` to activate YAML assertions, or `_ "github.com/go-openapi/testify/v2/enable/colors"` to enable colorized output, without forcing dependencies on all users.
104106

105107
## Development Commands
106108

.github/workflows/auto-merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ jobs:
1111
permissions:
1212
contents: write
1313
pull-requests: write
14-
uses: go-openapi/ci-workflows/.github/workflows/auto-merge.yml@50a35d7a3dec2ab631ddc39b1307a8394fcc44c7 # v0.2.4
14+
uses: go-openapi/ci-workflows/.github/workflows/auto-merge.yml@ea0dfc9a8f78335f47355d842b76bcf95d29c846 # v0.2.5
1515
secrets: inherit

.github/workflows/bump-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
permissions:
3333
contents: write
3434
pull-requests: write
35-
uses: go-openapi/ci-workflows/.github/workflows/bump-release-monorepo.yml@50a35d7a3dec2ab631ddc39b1307a8394fcc44c7 # v0.2.4
35+
uses: go-openapi/ci-workflows/.github/workflows/bump-release-monorepo.yml@ea0dfc9a8f78335f47355d842b76bcf95d29c846 # v0.2.5
3636
with:
3737
bump-type: ${{ inputs.bump-type }}
3838
tag-message-title: ${{ inputs.tag-message-title }}

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ jobs:
1818
permissions:
1919
contents: read
2020
security-events: write
21-
uses: go-openapi/ci-workflows/.github/workflows/codeql.yml@50a35d7a3dec2ab631ddc39b1307a8394fcc44c7 # v0.2.4
21+
uses: go-openapi/ci-workflows/.github/workflows/codeql.yml@ea0dfc9a8f78335f47355d842b76bcf95d29c846 # v0.2.5
2222
secrets: inherit

.github/workflows/contributors.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ jobs:
1414
permissions:
1515
pull-requests: write
1616
contents: write
17-
uses: go-openapi/ci-workflows/.github/workflows/contributors.yml@50a35d7a3dec2ab631ddc39b1307a8394fcc44c7 # v0.2.4
17+
uses: go-openapi/ci-workflows/.github/workflows/contributors.yml@ea0dfc9a8f78335f47355d842b76bcf95d29c846 # v0.2.5
1818
secrets: inherit

.github/workflows/go-test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,7 @@ on:
1313

1414
jobs:
1515
test:
16-
uses: go-openapi/ci-workflows/.github/workflows/go-test-monorepo.yml@50a35d7a3dec2ab631ddc39b1307a8394fcc44c7 # v0.2.4
16+
uses: go-openapi/ci-workflows/.github/workflows/go-test-monorepo.yml@ea0dfc9a8f78335f47355d842b76bcf95d29c846 # v0.2.5
17+
with:
18+
extra-flags: '-tags testcgo' # this is to trigger extra tests in spew
1719
secrets: inherit

.github/workflows/scanner.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ jobs:
1515
permissions:
1616
contents: read
1717
security-events: write
18-
uses: go-openapi/ci-workflows/.github/workflows/scanner.yml@50a35d7a3dec2ab631ddc39b1307a8394fcc44c7 # V0.2.4
18+
uses: go-openapi/ci-workflows/.github/workflows/scanner.yml@ea0dfc9a8f78335f47355d842b76bcf95d29c846 # V0.2.4
1919
secrets: inherit

.github/workflows/tag-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: Create release
1414
permissions:
1515
contents: write
16-
uses: go-openapi/ci-workflows/.github/workflows/release.yml@50a35d7a3dec2ab631ddc39b1307a8394fcc44c7 # v0.2.4
16+
uses: go-openapi/ci-workflows/.github/workflows/release.yml@ea0dfc9a8f78335f47355d842b76bcf95d29c846 # v0.2.5
1717
with:
1818
tag: ${{ github.ref_name }}
1919
is-monorepo: true

assert/assert_assertions.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assert/assert_assertions_test.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)