MCPcopy Index your code
hub / github.com/bytebase/bytebase / Equal

Method Equal

backend/plugin/schema/function_comparer.go:39–39  ·  view source on GitHub ↗

Equal compares two functions and returns whether they are equal.

(oldFunc, newFunc *storepb.FunctionMetadata)

Source from the content-addressed store, hash-verified

37type FunctionComparer interface {
38 // Equal compares two functions and returns whether they are equal.
39 Equal(oldFunc, newFunc *storepb.FunctionMetadata) bool
40
41 // CompareDetailed performs detailed comparison and returns migration strategy information.
42 // Returns nil if functions are equal.

Callers 15

TestMatchSubjectPatternFunction · 0.65
TestValidateAudienceFunction · 0.65
newMockServerFunction · 0.65
TestIdentityProviderFunction · 0.65
newMockServerFunction · 0.65
TestIdentityProviderFunction · 0.65
TestIdentityProviderFunction · 0.65

Implementers 2

DefaultFunctionComparerbackend/plugin/schema/function_compare
alwaysEqualFunctionComparerbackend/plugin/schema/pg/metadata_migr

Calls

no outgoing calls

Tested by 15

TestMatchSubjectPatternFunction · 0.52
TestValidateAudienceFunction · 0.52
newMockServerFunction · 0.52
TestIdentityProviderFunction · 0.52
newMockServerFunction · 0.52
TestIdentityProviderFunction · 0.52
TestIdentityProviderFunction · 0.52