Coverage report: /development/source/library/org/datagraph/spocq-shard/src/core/patches/flexistreams-20180307.lisp

KindCoveredAll%
expression010 0.0
branch02 0.0
Key
Not instrumented
Conditionalized out
Executed
Not executed
 
Both branches taken
One branch taken
Neither branch taken
1
 ;;; -*- package: sb-kernel; -*-
2
 
3
 (in-package :flexi-streams)
4
 
5
 ;; ensure that truncate treats unity rationals as whole
6
 
7
 (defun maybe-rewind (stream octets)
8
   "Tries to `rewind' the \(binary) stream STREAM by OCTETS octets.
9
 Returns T if it succeeds, otherwise NIL."
10
   (when-let (position (stream-file-position stream))
11
     (if (file-position stream (- position octets)) t nil)))