MCPcopy Create free account
hub / github.com/CheckPointSW/Karta / addFollower

Method addFollower

src/function_context.py:526–532  ·  view source on GitHub ↗

Add a binary follower to our source context. He thinks we are a potential (hint) match. Args: bin_ctx (ComparableContext): binary function that follows us using a hint

(self, bin_ctx)

Source from the content-addressed store, hash-verified

524 self.collision_candidates.remove(self)
525
526 def addFollower(self, bin_ctx):
527 """Add a binary follower to our source context. He thinks we are a potential (hint) match.
528
529 Args:
530 bin_ctx (ComparableContext): binary function that follows us using a hint
531 """
532 self.followers.add(bin_ctx)
533
534 def removeFollower(self, bin_ctx):
535 """Remove a (binary) follower from our watch list (he was probably matched without us).

Callers 1

addHintsMethod · 0.80

Calls 1

addMethod · 0.45

Tested by

no test coverage detected