Ejemplo n.º 1
0
int
main(int argc, char **argv)
{

	(void)argc;
	(void)argv;

	test_null_alloc();
	test_null_malloc();
	test_null_free();
	test_alloc_overflow();
	test_alloc_underflow();
	test_malloc_failure();
	test_free_null_codec();
	test_double_free();

	test_foreach();
	test_foreach_null_args();
	test_decode_null_args();
	test_encode_null_args();

	test_resize_overflow();
	test_limit_null_realloc();
	test_limit_realloc_failure();
	test_trim_null_realloc();
	test_trim_realloc_failure();

	test_use_defunct_decoder();
	test_use_busy_decoder();

	test_limit_null_encoder();
	test_limit_decoder();
	test_limit_overflow();
	test_limit_overflow_no_realloc();
	test_limit_between_two_resizes();

	test_use_defunct_encoder();
	test_use_busy_encoder();

	test_resize_null_codec();
	test_trim_null_codec();
	test_trim_to_limit();

	test_resize_realloc_failure();

	test_clean_null_field();
	test_clean_unknown_field();

	test_clean_indexed_field_with_name();
	test_clean_indexed_field_with_value();
	test_clean_indexed_field_with_indexed_name();

	test_strerror();

	return (0);
}
Ejemplo n.º 2
0
int main(void)
{
	test_encodeNumeric();
	test_encodeNumeric2();
	test_encodeNumeric3();
	test_encodeNumeric_versionup();
	test_encode8();
	test_encode8_versionup();
	test_encodeAn();
	test_encodeAn2();
	test_encodeKanji();
	test_encodeNumericPadded();
	test_encodeNumericPadded2();
	test_encodeAnNum();
	test_padding();
	test_padding2();
	test_struct_listop();
	test_insertStructuredAppendHeader();
	test_insertStructuredAppendHeader_error();
	test_struct_insertStructuredAppendHeaders();
	test_lengthOfCode_num();
	test_splitentry();
	test_splitentry2();
	test_splitentry3();
	test_struct_split_example();
	test_struct_split_tooLarge();
	test_struct_split_invalidVersion();
	test_parity();
	test_parity2();
	test_null_free();

	test_mqr_new();
	test_mqr_setversion();
	test_mqr_setlevel();
	test_paddingMQR();
	test_padding2MQR();
	test_textMQR();

	test_ECIinvalid();
	test_encodeECI();

	report();

	return 0;
}
Ejemplo n.º 3
0
int main(int argc, char **argv)
{
	test_iterate();
	test_iterate2();
	//print_filler();
	test_filler();
	test_format();
	test_encode();
	test_encode2();
	test_encode3();
	test_encodeNull();
	test_encodeEmpty();
	test_encodeNull8();
	test_encodeEmpty8();
	test_encodeLongData();
	test_01234567();
	test_invalid_input();
//	print_01234567();
	test_struct_example();
	test_struct_semilong();
	test_null_free();
	test_qrraw_new();
	test_mqrraw_new();
	test_encodeData();
	test_formatInfo();
	test_decodeSimple();
	test_decodeLong();
	test_decodeVeryLong();
	//print_fillerMQR();
	test_fillerMQR();
	test_formatInfoMQR();
	test_encodeTooLongMQR();
	test_decodeShortMQR();
	test_oddBitCalcMQR();
	test_mqrencode();
	test_apiversion();

	report();

	return 0;
}
Ejemplo n.º 4
0
int main(void)
{
	test_iterate();
	test_iterate2();
	//print_filler();
	test_filler();
	test_format();
	test_encode();
	test_encode2();
	test_encode3();
	test_encodeNull();
	test_encodeEmpty();
	test_encodeNull8();
	test_encodeEmpty8();
	test_encodeTooLong();
	test_01234567();
	test_invalid_input();
//	print_01234567();
	test_struct_example();
	test_struct_semilong();
	test_null_free();
	test_qrraw_new();
	test_mqrraw_new();
	test_encodeData();
	test_formatInfo();
	test_decodeSimple();
	test_decodeLong();
	test_decodeVeryLong();
	//print_fillerMQR();
	test_fillerMQR();
	test_formatInfoMQR();
	test_encodeTooLongMQR();
	test_decodeShortMQR();

	QRcode_clearCache();

	report();

	return 0;
}
Ejemplo n.º 5
0
int main(int argc, char **argv)
{
	test_encodeNumeric();
	test_encodeNumeric2();
	test_encodeNumeric3();
	test_encodeNumeric_versionup();
	test_encode8();
	test_encode8_versionup();
	test_encodeTooLong();
	test_encodeAn();
	test_encodeAn2();
	test_encodeKanji();
	test_encodeNumericPadded();
	test_encodeNumericPadded2();
	test_encodeAnNum();
	test_padding();
	test_padding2();
	test_struct_listop();
	test_insertStructuredAppendHeader();
	test_insertStructuredAppendHeader_error();
	test_struct_insertStructuredAppendHeaders();
	test_lengthOfCode_num();
	test_splitentry();
	test_splitentry2();
	test_splitentry3();
	test_struct_split_example();
	test_struct_split_tooLarge();
	test_struct_split_invalidVersion();
	test_parity();
	test_parity2();
	test_null_free();

	report();

	return 0;
}