Kyle R. Burton on 17 Mar 2008 08:19:46 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: anyone familiar with sb-cover?

  • From: "Kyle R. Burton" <kyle.burton@gmail.com>
  • To: philly-lambda@googlegroups.com
  • Subject: Re: anyone familiar with sb-cover?
  • Date: Mon, 17 Mar 2008 11:19:16 -0400
  • Authentication-results: mx.google.com; spf=pass (google.com: domain of kyle.burton@gmail.com designates 209.85.200.169 as permitted sender) smtp.mail=kyle.burton@gmail.com; dkim=pass (test mode) header.i=@gmail.com
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:received:x-sender:x-apparently-to:received:received:received-spf:authentication-results:received:dkim-signature:domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:reply-to:sender:precedence:x-google-loop:mailing-list:list-id:list-post:list-help:list-unsubscribe; bh=s8ntbWQX2ak96Rn5VVAjqTHWHodbPdypKUSuZXUsRQs=; b=a5f7A0vcLxz6N+PaovCM0sdWnopG6pXQ/Q5gjKj+ZXLenndyTeyIclF/TqjXH37bQlJK1IcWEj2ynuSMJqOHrlbrhSLlSCKZuXuAP7NKhLe658cmTBvio8sYt+XxqDPj3Vz4TrWPCP7GE1j+QMxQyM3TjUpSZFPuOY6geU27dkY=
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=jHzreKXIucb1X2fQAUrW4lR7+JAPAaX4BM35s9p/EaM=; b=PXGfXLoZp+ydZe+IddvF2pIN178Rz7ey8q6uN3EiVTLKEUkY542k2oD7ssycS+FOPx7bGEzHHqU8kPYb92w9/f5+NtoRnL8yoSd+NF5aTjhkoWaT7mzD7+om9csv/6NOxm1oHRKiBwGXWx2eWJ9+wiWm20q4i1peCjtQSHJ0RBM=
  • Mailing-list: list philly-lambda@googlegroups.com; contact philly-lambda-owner@googlegroups.com
  • Reply-to: philly-lambda@googlegroups.com
  • Sender: philly-lambda@googlegroups.com

>  Perhaps the other macro is is residence of the utility, otherwise it should not have come out uncover.  If you are getting 100% from the primary code you should be alright.  The pointer will do no good.

Yeah, I've got 4 packages, A and B (A's tests), C and D (C's tests).

I've got macros in A that are showing 100% coverage based on tests is
in B - though I think I'm using them directly in B. I've got a macro
in C that is used by 2 fn's in C which are covered by the tests in D,
but the macro itself isn't showing coverage.  It must be b/c its not
used directly by the unit test...actually now that I've said that...

Macros are expanded at 'compile' time - when the fasl is written.  So
now I'm thinking maybe it's not covered by virtue of how I'm executing
the runner:

  1 - turn on coverage
  2 - require / recompile the base libraries (A and C)
  3 - use 'load to run/exec the unit test code (B and D)
  4 - produce coverage report

It's probably at 2 where the macro from C is actually 'executed' and
not at 3.  So maybe it's that distinction...it looks like I should
create a simpler example and have a few things to work out for myself.
 Exporting the macro isn't the end of the world, it's just feels dirty
- exposing too many of the innards of the module itself.  I wonder if
just a macroexpand-1 in the unit test is enough, lisp-unit does in
fact have an assert-expansion...


Thanks,

Kyle