[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 05/119: stub out (but don't write any) tests
From: |
Eric Schulte |
Subject: |
[elpa] 05/119: stub out (but don't write any) tests |
Date: |
Mon, 10 Mar 2014 16:56:56 +0000 |
eschulte pushed a commit to branch master
in repository elpa.
commit fe0afb6103d68f1a27cad6aad78ecf2b2c6d04fe
Author: Eric Schulte <address@hidden>
Date: Wed Dec 18 00:21:38 2013 -0700
stub out (but don't write any) tests
---
emacs-web-server-test.el | 31 +++++++++++++++++++++++++++++++
emacs-web-server.el | 2 +-
2 files changed, 32 insertions(+), 1 deletions(-)
diff --git a/emacs-web-server-test.el b/emacs-web-server-test.el
new file mode 100644
index 0000000..1e5e718
--- /dev/null
+++ b/emacs-web-server-test.el
@@ -0,0 +1,31 @@
+;;; emacs-web-server-test.el --- Test the Emacs Web Server
+
+;; Copyright (C) 2013 Eric Schulte <address@hidden>
+
+;; Author: Eric Schulte <address@hidden>
+;; License: GPLV3 (see the COPYING file in this directory)
+
+;;; TODO: fill in these tests, and then write more
+
+;;; Code:
+(require 'emacs-web-server)
+(require 'ert)
+
+(ert-deftest ews/keyword-style-handler ()
+ "Ensure that a simple keyword-style handler matches correctly."
+ (should t) ; should match one
+ (should-not nil) ; should not match another
+ )
+
+(ert-deftest ews/function-style-handler ()
+ "Ensure that a function-style handler matches correctly."
+ (should t) ; should match one
+ (should-not nil) ; should not match another
+ )
+
+(ert-deftest ews/removed-from-ews-servers-after-stop ()
+ (should t))
+
+(ert-deftest ews/parse-many-headers ()
+ "Test that a number of headers parse successfully."
+ (should t))
diff --git a/emacs-web-server.el b/emacs-web-server.el
index ef22032..8e69ec6 100644
--- a/emacs-web-server.el
+++ b/emacs-web-server.el
@@ -3,7 +3,7 @@
;; Copyright (C) 2013 Eric Schulte <address@hidden>
;; Author: Eric Schulte <address@hidden>
-;; Keywords: elnode html sprunge paste
+;; Keywords: http
;; License: GPLV3 (see the COPYING file in this directory)
;;; Code:
- [elpa] branch master updated (f64a801 -> 4f28097), Eric Schulte, 2014/03/10
- [elpa] 02/119: logging support, Eric Schulte, 2014/03/10
- [elpa] 03/119: parsing HTTP headers, Eric Schulte, 2014/03/10
- [elpa] 01/119: initial commit, echo server working, Eric Schulte, 2014/03/10
- [elpa] 04/119: simple hello world server working, Eric Schulte, 2014/03/10
- [elpa] 05/119: stub out (but don't write any) tests,
Eric Schulte <=
- [elpa] 08/119: NOTES file for tasks and notes, Eric Schulte, 2014/03/10
- [elpa] 07/119: TODO: handle post data, Eric Schulte, 2014/03/10
- [elpa] 06/119: helper for HTTP headers, Eric Schulte, 2014/03/10
- [elpa] 09/119: parsing form data in POST, Eric Schulte, 2014/03/10
- [elpa] 11/119: more flexible network process creation, Eric Schulte, 2014/03/10
- [elpa] 10/119: some simple examples, Eric Schulte, 2014/03/10
- [elpa] 15/119: more lenient parsing of multipart forms, Eric Schulte, 2014/03/10
- [elpa] 12/119: compiling to .elc, Eric Schulte, 2014/03/10
- [elpa] 13/119: tasks, Eric Schulte, 2014/03/10
- [elpa] 18/119: 404 not found helper, Eric Schulte, 2014/03/10