aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/lux/world/net.lux
blob: 695308c40f443bed9894e66f0478f4d24a8f8461 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
(.require
 [library
  [lux (.except)
   [abstract
    [monad (.only do)]]
   [math
    ["[0]" random (.only Random)]]
   [test
    ["_" property (.only Test)]]]]
 [\\library
  ["[0]" /]]
 ["[0]" /
  ["[1][0]" mime]
  ["[1][0]" uri]
  ["[1][0]" http
   ["[1]/[0]" client]
   ["[1]/[0]" cookie]
   ["[1]/[0]" header]
   ["[1]/[0]" status]
   ["[1]/[0]" version]
   ["[1]/[0]" response]
   ["[1]/[0]" request]
   ["[1]/[0]" server]]])

(def .public test
  Test
  (<| (_.covering /._)
      (do [! random.monad]
        [])
      (all _.and
           (_.coverage [/.Host]
             true)
           (_.coverage [/.URL]
             true)
           (_.coverage [/.Address]
             true)

           /mime.test
           
           /http/client.test
           /http/cookie.test
           /http/header.test
           /http/status.test
           /http/version.test
           /http/response.test
           /http/request.test
           /http/server.test

           /uri.test
           )))