...

Source file src/edge-infra.dev/test/snapshot/doc.go

Documentation: edge-infra.dev/test/snapshot

     1  // Package snapshot implements Go snapshot testing by writing expected test
     2  // results to files (a snapshot of the expected results) and comparing actual
     3  // test output against those files. If the actual test output differs from the
     4  // snapshot, the differences between the two are printed to the user for debugging.
     5  //
     6  // This package drew inspiration from github.com/bradleyjkemp/cupaloy/v2 while
     7  // using github.com/pmezard/go-difflib/difflib to retrieve and display diffs.
     8  package snapshot
     9  

View as plain text