Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Diff ¶
Diff holds the colorized differences between the expected and actual JSON responses. Expected: The colorized string representing the differences in the expected JSON response. Actual: The colorized string representing the differences in the actual JSON response.
func Compare ¶
Compare takes expected and actual JSON strings and returns the colorized differences. expectedJSON: The JSON string containing the expected values. actualJSON: The JSON string containing the actual values. Returns a Diff struct containing the colorized differences for the expected and actual JSON responses.
func CompareHeaders ¶
CompareHeaders compares the headers of the expected and actual maps and returns the differences as colorized strings. expect: The map containing the expected header values. actual: The map containing the actual header values. Returns a ColorizedResponse containing the colorized differences for the expected and actual headers.