White-Box Testing
By Oliver Cole, March 01, 2000
Traditionally, there are two main approaches to testing software: "black-box" (or functional) testing, and "white-box" (or structural) testing. White-box testing strategies include designing tests such that every source line of code is executed at least once, or requiring every function to be individually tested.
Mar00: White-Box Testing
struc Msg {
int Length;
ptr Address);
void SendMsg(Msg SendThis);
...
#include "aprobe.h"
probe thread
{
probe "SendMsg"
{
on_entry
log($SendThis.Length, ap_GetCurrentTime());
on_exit
log(ap_GetCurrentTime());
}
}
Example 3: Benchmarking the throughput of a SendMsg function.