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

Method expel

src/core/function_context.py:184–193  ·  view source on GitHub ↗

Expel us from the given file, it is no longer an option for us. Args: file_match (FileMatch): context representing a source file

(self, file_match)

Source from the content-addressed store, hash-verified

182 self.selfCheck()
183
184 def expel(self, file_match):
185 """Expel us from the given file, it is no longer an option for us.
186
187 Args:
188 file_match (FileMatch): context representing a source file
189 """
190 if file_match in self.files:
191 self.files.remove(file_match)
192 # propagate this new information internally
193 self.selfCheck()
194
195 def isFileSuitable(self, src_ctx):
196 """Check if the given source context can be a possible match, judging only by the files of both contexts.

Callers 3

removeMethod · 0.80
matchMethod · 0.80
markMatchMethod · 0.80

Calls 2

selfCheckMethod · 0.95
removeMethod · 0.80

Tested by

no test coverage detected