| Server IP : 173.209.174.21 / Your IP : 216.73.216.79 Web Server : Apache/2.4.58 (Ubuntu) System : Linux wcfs-server 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64 User : nodor ( 1000) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/share/augeas/lenses/dist/tests/ |
Upload File : |
(*
Module: Test_Approx
Provides unit tests and examples for the <Approx> lens.
*)
module Test_approx =
(* Variable: default_approx
A full configuration *)
let default_approx = "# The following are the defaults, so there is no need
# to uncomment them unless you want a different value.
# See approx.conf(5) for details.
$interface any
$port 9999
$interval 720
$max_wait 10
$max_rate unlimited
$debug false
# Here are some examples of remote repository mappings.
# See http://www.debian.org/mirror/list for mirror sites.
debian http://ftp.nl.debian.org/debian
debian-volatile http://ftp.nl.debian.org/debian-volatile
security http://security.debian.org
"
(* Test: Approx.lns
Testing <Approx.lns> on <default_approx> *)
test Approx.lns get default_approx =
{ "#comment" = "The following are the defaults, so there is no need" }
{ "#comment" = "to uncomment them unless you want a different value." }
{ "#comment" = "See approx.conf(5) for details." }
{ }
{ "$interface" = "any" }
{ "$port" = "9999" }
{ "$interval" = "720" }
{ "$max_wait" = "10" }
{ "$max_rate" = "unlimited" }
{ "$debug" = "false" }
{ }
{ "#comment" = "Here are some examples of remote repository mappings." }
{ "#comment" = "See http://www.debian.org/mirror/list for mirror sites." }
{ }
{ "debian" = "http://ftp.nl.debian.org/debian" }
{ "debian-volatile" = "http://ftp.nl.debian.org/debian-volatile" }
{ "security" = "http://security.debian.org" }