mirror of https://github.com/tstack/lnav
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
389 B
C++
24 lines
389 B
C++
12 years ago
|
|
||
|
#include "config.h"
|
||
|
|
||
|
#include <stdio.h>
|
||
|
#include <assert.h>
|
||
|
|
||
|
#include "hist_source.hh"
|
||
|
|
||
|
int main(int argc, char *argv[])
|
||
|
{
|
||
|
int retval = EXIT_SUCCESS;
|
||
|
hist_source hs;
|
||
|
|
||
|
assert(hs.text_line_count() == 0);
|
||
|
hs.analyze();
|
||
|
|
||
|
hs.add_value(1, bucket_type_t(1));
|
||
|
assert(hs.text_line_count() == 101);
|
||
|
|
||
|
hs.add_value(2, bucket_type_t(1));
|
||
|
assert(hs.text_line_count() == 101);
|
||
|
|
||
|
return retval;
|
||
|
}
|