Equal compares two functions using simple definition comparison.
(oldFunc, newFunc *storepb.FunctionMetadata)
| 48 | |
| 49 | // Equal compares two functions using simple definition comparison. |
| 50 | func (*DefaultFunctionComparer) Equal(oldFunc, newFunc *storepb.FunctionMetadata) bool { |
| 51 | if oldFunc == nil || newFunc == nil { |
| 52 | return oldFunc == newFunc |
| 53 | } |
| 54 | |
| 55 | // Simple definition comparison |
| 56 | return functionsEqual(oldFunc, newFunc) |
| 57 | } |
| 58 | |
| 59 | // CompareDetailed provides basic comparison for engines that don't have advanced comparison logic. |
| 60 | func (*DefaultFunctionComparer) CompareDetailed(oldFunc, newFunc *storepb.FunctionMetadata) (*FunctionComparisonResult, error) { |
nothing calls this directly
no test coverage detected