(msg string, args ...any)
| 102 | } |
| 103 | |
| 104 | func formatMsgAndArgs(msg string, args ...any) string { |
| 105 | if len(args) == 0 { |
| 106 | return msg |
| 107 | } |
| 108 | format, ok := args[0].(string) |
| 109 | if !ok { |
| 110 | panic("message argument must be a fmt string") |
| 111 | } |
| 112 | return fmt.Sprintf(format, args[1:]...) |
| 113 | } |
| 114 | |
| 115 | func diff(expected, actual any) string { |
| 116 | lines := []string{ |
no outgoing calls
no test coverage detected
searching dependent graphs…