File: test-communicate.lisp

package info (click to toggle)
cl-postmodern 20211113.git9d4332f-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,528 kB
  • sloc: lisp: 22,909; sql: 76; makefile: 2
file content (22 lines) | stat: -rw-r--r-- 792 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
;;;; -*- Mode: LISP; Syntax: Ansi-Common-Lisp; Base: 10; Package: CL-POSTGRES-TESTS; -*-
(in-package :cl-postgres-tests)

(def-suite :cl-postgres-communicate
    :description "Test suite for cl-postgres functions in communicate.lisp"
    :in :cl-postgres)

(in-suite :cl-postgres-communicate)

(test connection-pid
  (is (equal (length (with-test-connection
                (cl-postgres::parameter-list-types
                 (cl-postgres::connection-pid connection))))
             2)))

(test postgresql-versions
    (with-test-connection
      (is (postgresql-version-at-least "9.5.4" connection))
      (is (postgresql-version-at-least
           (cl-postgres::get-postgresql-version connection)
           connection))
      (is (not (postgresql-version-at-least "11000" connection)))))