work in progress: storage/tracking
This commit is contained in:
parent
4036a03882
commit
c2e27fe6dc
3 changed files with 10 additions and 4 deletions
|
@ -5,7 +5,7 @@
|
|||
(defpackage :scopes/storage
|
||||
(:use :common-lisp)
|
||||
(:export #:query
|
||||
#:track))
|
||||
#:track #:time-stamp #:data))
|
||||
|
||||
(in-package :scopes/storage)
|
||||
|
||||
|
|
|
@ -5,6 +5,8 @@
|
|||
(in-package :scopes/storage)
|
||||
|
||||
(defclass track () (
|
||||
(taskid :initarg :taskid)
|
||||
(username :initarg :username)))
|
||||
(head)
|
||||
(time-stamp :reader time-stamp :accessor time-stamp!)
|
||||
(data :accessor data)
|
||||
(container :initarg :container :initform nil)))
|
||||
|
||||
|
|
|
@ -12,6 +12,10 @@
|
|||
|
||||
(defun run ()
|
||||
(let ((tst (sct:test-suite)))
|
||||
(test-track tst)
|
||||
(sct:result tst)))
|
||||
|
||||
|
||||
(defun test-track (tst)
|
||||
(let ((tr (make-instance 'scs:track)))
|
||||
;(setf (scs:data tr) nil)
|
||||
(sct:assert-eq tst (scs:data tr) nil)))
|
||||
|
|
Loading…
Add table
Reference in a new issue