Explorar o código

net: add test module to mod.rs

lunar-mining %!s(int64=2) %!d(string=hai) anos
pai
achega
4d4392f9e8
Modificáronse 1 ficheiros con 3 adicións e 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.