Skip to content

Remove github.com/andreyvit/diff dependency#430

Open
jeolted wants to merge 2 commits into
vektah:masterfrom
jeolted:remove-old-diff-dependency
Open

Remove github.com/andreyvit/diff dependency#430
jeolted wants to merge 2 commits into
vektah:masterfrom
jeolted:remove-old-diff-dependency

Conversation

@jeolted
Copy link
Copy Markdown

@jeolted jeolted commented May 21, 2026

When the tests were added 8 years ago, the assert.Equal() diff were not so easy to compare.
Since github.com/stretchr/testify v1.2.2, the Equal() function produce a nice diff similar to what github.com/andreyvit/diff does.

assert.Equal() now produce a pretty diff:
Diff:

--- Expected
+++ Actual
@@ -5,3 +5,3 @@
       Arguments: [Argument]
-      -   <Argument>
+      - <Argument>
        	  Name: "bar"

I have:

  • Added tests covering the bug / feature
  • Updated any relevant documentation

When the tests were added 8 years ago, the assert.Equal() diff were not
so easy to compare.
Since github.com/stretchr/testify v1.2.2, the Equal() function produce a
nice diff similar to what github.com/andreyvit/diff does.
@coveralls
Copy link
Copy Markdown

coveralls commented May 21, 2026

Coverage Status

coverage: 87.295% (+0.03%) from 87.265% — jeolted:remove-old-diff-dependency into vektah:master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants