♻️ Use Sone’s identity to create insert URI
[Sone.git] / src / test / kotlin / net / pterodactylus / sone / test / Mocks.kt
index 3b2c716..312f158 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * Sone - Mocks.kt - Copyright © 2019 David ‘Bombe’ Roden
+ * Sone - Mocks.kt - Copyright © 2019–2020 David ‘Bombe’ Roden
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -32,6 +32,7 @@ val remoteSone2 = createRemoteSone()
 val localSone1 = createLocalSone()
 val localSone2 = createLocalSone()
 
+val createInsertUri: FreenetURI get() = InsertableClientSSK.createRandom(DummyRandomSource(), "").insertURI
 fun createId() = InsertableClientSSK.createRandom(DummyRandomSource(), "").uri.routingKey.asFreenetBase64
 
 fun createLocalSone(id: String? = createId()) = object : IdOnlySone(id) {