MCPcopy Create free account
hub / github.com/libgit2/pygit2 / certificate_check

Method certificate_check

test/test_remote.py:349–357  ·  view source on GitHub ↗
(
            self, certificate: None, valid: bool, host: str | bytes
        )

Source from the content-addressed store, hash-verified

347 self.i = 0
348
349 def certificate_check(
350 self, certificate: None, valid: bool, host: str | bytes
351 ) -> bool:
352 self.i += 1
353
354 assert certificate is None
355 assert valid is True
356 assert host == b'github.com'
357 return True
358
359 # We create an in-memory repository
360 git = pygit2.Repository()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected