aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_helpers.c
diff options
context:
space:
mode:
authorChelsea H. Komlo <chelsea.komlo@gmail.com>2016-11-21 13:30:25 -0500
committerChelsea H. Komlo <chelsea.komlo@gmail.com>2016-11-24 08:12:36 -0500
commitc86bbdd3aea050537dfe659013c1db2aa481bf06 (patch)
tree613f15890f8259f8e6695e861acb3bcb8eec6149 /src/test/test_helpers.c
parent118bba7622ab15ea5c58ff32be178820150423ba (diff)
downloadtor-c86bbdd3aea050537dfe659013c1db2aa481bf06.tar.gz
tor-c86bbdd3aea050537dfe659013c1db2aa481bf06.zip
adding documentation to extracted unit test helper
Diffstat (limited to 'src/test/test_helpers.c')
-rw-r--r--src/test/test_helpers.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test_helpers.c b/src/test/test_helpers.c
index fbc09faa0e..132af39776 100644
--- a/src/test/test_helpers.c
+++ b/src/test/test_helpers.c
@@ -108,6 +108,8 @@ connection_write_to_buf_mock(const char *string, size_t len,
write_to_buf(string, len, conn->outbuf);
}
+/* Set up a fake origin circuit with the specified number of cells,
+ * Return a pointer to the newly-created dummy circuit */
circuit_t *
dummy_origin_circuit_new(int n_cells)
{