Explorar el Código

net: add test module to mod.rs

lunar-mining hace 2 años
padre
commit
4d4392f9e8
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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.