From 24c384e5f38c93948a5034ad4761d9ce27e3c09b Mon Sep 17 00:00:00 2001 From: Bach Nguyen <26138322+bachnguyenTE@users.noreply.github.com> Date: Fri, 29 Mar 2024 04:28:19 +0700 Subject: [PATCH] [Unit Tests] Added tests for connectivity.py (#42) * Unit test for connectivity.py functionality * Adding comments to connectivity test * Coverage report * Revert exclusion change to .gitignore --- .coverage | Bin 0 -> 53248 bytes conn2res/tests/.coverage | Bin 0 -> 53248 bytes conn2res/tests/test_connectivity.py | 349 ++++++++++++++++++++++++++++ 3 files changed, 349 insertions(+) create mode 100644 .coverage create mode 100644 conn2res/tests/.coverage create mode 100644 conn2res/tests/test_connectivity.py diff --git a/.coverage b/.coverage new file mode 100644 index 0000000000000000000000000000000000000000..75dfa2814644944c55f98479bae49e4984e341c2 GIT binary patch literal 53248 zcmeI4?`s^#8OL{TS9iM8?v0HRhfs{BFIrhx(nU6=Bq5|u?b=S9y0V>+Q0QjwZX|7e zw=3`N$yP&YFDV!brT;*imvy0~eU-P3p=ls*3Z-xQqJ5FRXiRA^g*MPS&_2)p(A~*W zFgk;g@*VDGf6UBxpZUx)GdH()du92e7c03EgdI1QC$&SGu4`YBQq#0Dy={8up+q}o zen4A&V1KvWvbMPLcU!!oS;Ze|;#>A5v0(kg{?f!BtWNod6K|K?a+4AeKmY_l00chY z1bWL>sWvsGzxmzRZM0P!x=j_PvHjJ{XHQ=}E3ck@{^D7go|DHalET7*JT1fEhFn*n zT=CjUdVb4my0Pc4%6LuXxx0~S@kB@GXsY9ki%EIjbG#Oniq$GftcPC54L9XAwK<<; z$gUQvn{j%AM3lGca}IedD?TSfwW31hH&v8cam;JYRp#FMUZqq!azwwSk~+CzlU@@; zwV@OJs$5thp=J=a*!o83`pq>J%}aNyhRuNNycwsp4TDZS4rJT&lWO{r7khy()lJpx z#;Ubr1?L%B9thrGZAj~NuF&gg$?RGKbozyND4Au?3a^lHevo7B7vxJ*;lyUY+i4K; zZ+AQE+&EMsy>J}tR&uwpagbH^q1$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d&00JNY0w4eaAOHd&00R4#0RR8r7Vq-!|34A` z6#oz(iNA`!h(C!xir^8E c;Hbh;nWJ%zN*onA8so_1$l$2J5kLR`|LY(`MF0Q* literal 0 HcmV?d00001 diff --git a/conn2res/tests/.coverage b/conn2res/tests/.coverage new file mode 100644 index 0000000000000000000000000000000000000000..0432977178c6d345448eb299894e8d0e61d6645b GIT binary patch literal 53248 zcmeI5UyK_^9mi+?_|H1_ZPGMyPp9D_g(@VdP=%1_1FsZ`N9aS};05)C7lc4nS|L!WRFF`4=ST-|zRC-^_Tt=edhdJ>f=5cKo34MDmO{EHq6#Dy0y@qIZSf*-@Z~ znO)FXn~3ihwZvNI9~JwXqMUzG*w0ih*sJANDqlGCr*hx=!J(fQ9IHh)aDV^^fB*=5 zz6p$;Di^Br^V;*@j+|ysMS;^&K@wKJ@{RR#m)7N_b64fz`rR6 zDv%wwr=;t(-If!%-iD02D$6|#RhuU|N~5WcGp@zuIo5F7R4P&%RK*~0`%bVeudD5q zI72EeQd?1yK$R$W!{Z$CWLkV#2CAb1<+W6pXmQeQFPD~I_)e)%J$h8TrDB_$phd4k zQ`S(z*p%}fs;K1$ZPvaSI9{u(!WHT4SlIGO&#fr2Ht_qk$d^6Wi_P>xH*$SXsx8$T zMykE1fh!CxI|$ySHB{F%Ht1SXGLMvp#kHJoAO$JY&N{6?LE@^_CE3)RI%?beOhQ5a97=|c z7iiRXqNUM%zEE9Q(4MzqH%eP8Jr$;0C~L_*hSBU+Upe70$Oe*+8YHt4<54o}Bk3J7 zXSI;8o?F<@oHSpfo<@qJf?22@JEo129>L=hzjISYaLTv~+%XY+eDw!T)Rnt+=VVfR zDVMK)@z{QfvkHwmhxr$->aohV=41MO8ua;XOsUK%W0k+AwpTZu9*rgg#|@~<(ioh~ z0FpDd9m?!9{b3aQFJH#)$#c(G-=u=^b;h1@EyvlZdq3%ip-a;$Pg~(5S*l#>Iw6lj z;gW3neor}GGB;3(^C8J}LmBI^dsh0=xQ=j}>)6;_ign5+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