Просмотр исходного кода

net: add test module to mod.rs

lunar-mining 2 лет назад
Родитель
Сommit
4d4392f9e8
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      src/net/mod.rs

+ 3 - 0
src/net/mod.rs

@@ -16,6 +16,9 @@
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
  */
 
+#[cfg(test)]
+mod tests;
+
 /// Defines how to decode generic messages as well as implementing the
 /// common network messages that are sent between nodes as described
 /// by the [`protocol`] submodule.