1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-12-25 04:17:59 +01:00

TMP: make backward_propagate public, for tests

This commit is contained in:
Heiko Schaefer 2023-07-10 18:59:06 +02:00
parent 2d23080cc7
commit 4583b0a742
No known key found for this signature in database
GPG key ID: 4A849A1904CCBD7D

View file

@ -190,8 +190,10 @@ class Query(
* to longer paths. So the returned path(s) may not be optimal in terms of the amount of trust.
* To compensate for this, the caller should run the algorithm again on
* a residual network.
*
* FIXME: public for unit tests (undo!)
*/
private fun backwardPropagate(targetFpr: Fingerprint, targetUserid: String, filter: CertificationFilter): HashMap<Fingerprint, Pair<Path, Int>> {
fun backwardPropagate(targetFpr: Fingerprint, targetUserid: String, filter: CertificationFilter): HashMap<Fingerprint, Pair<Path, Int>> {
// Prefer paths where the target User ID is self-signed as long as possible. (But .. Why?)
val authPaths = backwardPropagateInternal(targetFpr, targetUserid, true, filter)