Testscenarios provides clean dependency injection for python unittest style
tests. This can be used for interface testing (testing many implementations via
a single test suite) or for classic dependency injection (provide tests with
dependencies externally to the test code itself, allowing easy testing in
different situations).
WWW: https://pypi.python.org/pypi/testscenarios
Testresources extends unittest with a clean and simple api to provide test
optimisation where expensive common resources are needed for test cases - for
example sample working trees for VCS systems, reference databases for enterprise
applications, or web servers ... let imagination run wild.
WWW: https://pypi.python.org/pypi/testresources
i18nutil/source/utility/unicode.cxx:753:21: error: unknown type name 'NumberFormat'; did you mean 'UNumberFormat'?
std::unique_ptr<NumberFormat> xF(
^~~~~~~~~~~~
UNumberFormat
/usr/local/include/unicode/unum.h:140:15: note: 'UNumberFormat' declared here
typedef void* UNumberFormat;
^
i18nutil/source/utility/unicode.cxx:754:9: error: use of undeclared identifier 'NumberFormat'; did you mean 'icu::NumberFormat'?
NumberFormat::createPercentInstance(aLocale, errorCode));
^~~~~~~~~~~~
icu::NumberFormat
/usr/local/include/unicode/numfmt.h:174:18: note: 'icu::NumberFormat' declared here
class U_I18N_API NumberFormat : public Format {
^
i18nutil/source/utility/unicode.cxx:753:35: error: no matching constructor for initialization of 'std::unique_ptr<UNumberFormat>' (aka 'unique_ptr<void *>')
std::unique_ptr<NumberFormat> xF(
^
/usr/include/c++/v1/memory:2425:28: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'icu::NumberFormat *' to 'const std::__1::unique_ptr<void *, std::__1::default_delete<void *> >' for 1st argument
class _LIBCPP_TEMPLATE_VIS unique_ptr
^
/usr/include/c++/v1/memory:2454:49: note: candidate constructor not viable: no known conversion from 'icu::NumberFormat *' to 'nullptr_t' for 1st argument
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR unique_ptr(nullptr_t) _NOEXCEPT
^
/usr/include/c++/v1/memory:2460:40: note: candidate constructor not viable: no known conversion from 'icu::NumberFormat *' to 'pointer' (aka 'void **') for 1st argument
_LIBCPP_INLINE_VISIBILITY explicit unique_ptr(pointer __p) _NOEXCEPT
^
/usr/include/c++/v1/memory:2481:31: note: candidate constructor not viable: no known conversion from 'icu::NumberFormat *' to 'std::__1::unique_ptr<void *, std::__1::default_delete<void *> >' for 1st argument
_LIBCPP_INLINE_VISIBILITY unique_ptr(unique_ptr&& __u) _NOEXCEPT
^
/usr/include/c++/v1/memory:2485:9: note: candidate template ignored: could not match 'unique_ptr<type-parameter-0-0, type-parameter-0-1>' against 'icu::NumberFormat *'
unique_ptr(unique_ptr<_Up, _Ep>&& __u,
^
/usr/include/c++/v1/memory:2500:35: note: candidate template ignored: could not match 'auto_ptr<type-parameter-0-0>' against 'icu::NumberFormat *'
_LIBCPP_INLINE_VISIBILITY unique_ptr(auto_ptr<_Up>&& __p,
^
/usr/include/c++/v1/memory:2448:49: note: candidate constructor not viable: requires 0 arguments, but 1 was provided
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR unique_ptr() _NOEXCEPT
^
/usr/include/c++/v1/memory:2468:31: note: candidate constructor not viable: requires 2 arguments, but 1 was provided
_LIBCPP_INLINE_VISIBILITY unique_ptr(pointer __p, typename conditional<
^
/usr/include/c++/v1/memory:2475:31: note: candidate constructor not viable: requires 2 arguments, but 1 was provided
_LIBCPP_INLINE_VISIBILITY unique_ptr(pointer __p, typename remove_reference<deleter_type>::type&& __d)
^
i18nutil/source/utility/unicode.cxx:761:5: error: unknown type name 'UnicodeString'; did you mean 'icu::UnicodeString'?
UnicodeString output;
^~~~~~~~~~~~~
icu::UnicodeString
/usr/local/include/unicode/unistr.h:286:20: note: 'icu::UnicodeString' declared here
class U_COMMON_API UnicodeString : public Replaceable
^
https://ssl.icu-project.org/trac/changeset/40705
PR: 227042
Reported by: antoine (via exp-run)
Obtained from: upstream
Enabling DTRACE option causes build failure.
It appears this option never really worked on FreeBSD.
PR: 217097
Submitted by: sunpoet (myself)
Approved by: Mikhail Tsatsenko <m.tsatsenko@gmail.com> (maintainer)
Thanks to: John Hein <z7dr6ut7gs@snkmail.com> (for analysis and testing)
In file included from src/functions/func_any_uri.cpp:27:
In file included from src/functions/func_any_uri.h:30:
In file included from src/functions/function_impl.h:25:
In file included from src/context/static_context.h:43:
In file included from src/zorbautils/hashmap_zstring.h:23:
src/util/utf8_util.h:784:22: error: unknown type name 'Collator'; did you mean 'UCollator'?
return static_cast<Collator*>( collation->getCollator() )->compare(us1, us2);
^~~~~~~~
UCollator
/usr/local/include/unicode/ucol.h:58:26: note: 'UCollator' declared here
typedef struct UCollator UCollator;
^
In file included from src/runtime/full_text/default_tokenizer.cpp:25:
src/runtime/full_text/icu_tokenizer.h:56:27: error: unknown type name 'RuleBasedBreakIterator'; did you mean 'icu::RuleBasedBreakIterator'?
typedef std::unique_ptr<RuleBasedBreakIterator> rbbi_ptr;
^~~~~~~~~~~~~~~~~~~~~~
icu::RuleBasedBreakIterator
/usr/local/include/unicode/rbbi.h:53:20: note: 'icu::RuleBasedBreakIterator' declared here
class U_COMMON_API RuleBasedBreakIterator /*U_FINAL*/ : public BreakIterator {
^
https://ssl.icu-project.org/trac/changeset/40705
PR: 227042
Reported by: antoine (via exp-run)
In file included from ../../../source/lobby/XmppClient.cpp:26:
../../../source/i18n/L10n.h:89:2: error: unknown type name 'Locale'; did you mean 'icu::Locale'?
Locale GetCurrentLocale() const;
^~~~~~
icu::Locale
/usr/local/include/unicode/unistr.h:77:7: note: 'icu::Locale' declared here
class Locale; // unicode/locid.h
^
In file included from ../../../source/lobby/XmppClient.cpp:26:
../../../source/i18n/L10n.h:133:24: error: unknown type name 'Locale'; did you mean 'icu::Locale'?
bool SaveLocale(const Locale& locale) const;
^~~~~~
icu::Locale
/usr/local/include/unicode/unistr.h:77:7: note: 'icu::Locale' declared here
class Locale; // unicode/locid.h
^
In file included from ../../../source/lobby/XmppClient.cpp:26:
../../../source/i18n/L10n.h:235:54: error: unknown type name 'Locale'; did you mean 'icu::Locale'?
std::wstring GetFallbackToAvailableDictLocale(const Locale& locale) const;
^~~~~~
icu::Locale
/usr/local/include/unicode/unistr.h:77:7: note: 'icu::Locale' declared here
class Locale; // unicode/locid.h
^
In file included from ../../../source/lobby/XmppClient.cpp:26:
../../../source/i18n/L10n.h:283:66: error: unknown type name 'Locale'; did you mean 'icu::Locale'?
void GetDictionaryLocale(const std::string& configLocaleString, Locale& outLocale) const;
^~~~~~
icu::Locale
/usr/local/include/unicode/unistr.h:77:7: note: 'icu::Locale' declared here
class Locale; // unicode/locid.h
^
In file included from ../../../source/lobby/XmppClient.cpp:26:
../../../source/i18n/L10n.h:314:28: error: unknown type name 'Locale'; did you mean 'icu::Locale'?
bool ValidateLocale(const Locale& locale) const;
^~~~~~
icu::Locale
/usr/local/include/unicode/unistr.h:77:7: note: 'icu::Locale' declared here
class Locale; // unicode/locid.h
^
In file included from ../../../source/lobby/XmppClient.cpp:26:
../../../source/i18n/L10n.h:411:98: error: unknown type name 'Locale'; did you mean 'icu::Locale'?
UDate ParseDateTime(const std::string& dateTimeString, const std::string& dateTimeFormat, const Locale& locale) const;
^~~~~~
icu::Locale
/usr/local/include/unicode/unistr.h:77:7: note: 'icu::Locale' declared here
class Locale; // unicode/locid.h
^
In file included from ../../../source/lobby/XmppClient.cpp:26:
../../../source/i18n/L10n.h:427:85: error: use of undeclared identifier 'DateFormat'; did you mean 'icu::DateFormat'?
std::string LocalizeDateTime(const UDate dateTime, const DateTimeType& type, const DateFormat::EStyle& style) const;
^~~~~~~~~~
icu::DateFormat
/usr/local/include/unicode/smpdtfmt.h:46:7: note: 'icu::DateFormat' declared here
class DateFormat;
^
In file included from ../../../source/lobby/XmppClient.cpp:26:
../../../source/i18n/L10n.h:508:2: error: unknown type name 'Locale'; did you mean 'icu::Locale'?
Locale currentLocale;
^~~~~~
icu::Locale
/usr/local/include/unicode/unistr.h:77:7: note: 'icu::Locale' declared here
class Locale; // unicode/locid.h
^
In file included from ../../../source/lobby/XmppClient.cpp:26:
../../../source/i18n/L10n.h:519:14: error: use of undeclared identifier 'Locale'
std::vector<Locale*> availableLocales;
^
../../../source/i18n/L10n.h:519:21: error: expected expression
std::vector<Locale*> availableLocales;
^
../../../source/i18n/L10n.h:590:2: error: unknown type name 'DateFormat'; did you mean 'UDateFormat'?
DateFormat* CreateDateTimeInstance(const DateTimeType& type, const DateFormat::EStyle& style, const Locale& locale) const;
^~~~~~~~~~
UDateFormat
/usr/local/include/unicode/udat.h:153:15: note: 'UDateFormat' declared here
typedef void* UDateFormat;
^
In file included from ../../../source/lobby/XmppClient.cpp:26:
../../../source/i18n/L10n.h:590:69: error: use of undeclared identifier 'DateFormat'; did you mean 'icu::DateFormat'?
DateFormat* CreateDateTimeInstance(const DateTimeType& type, const DateFormat::EStyle& style, const Locale& locale) const;
^~~~~~~~~~
icu::DateFormat
/usr/local/include/unicode/smpdtfmt.h:46:7: note: 'icu::DateFormat' declared here
class DateFormat;
^
In file included from ../../../source/lobby/XmppClient.cpp:26:
../../../source/i18n/L10n.h:590:102: error: unknown type name 'Locale'; did you mean 'icu::Locale'?
DateFormat* CreateDateTimeInstance(const DateTimeType& type, const DateFormat::EStyle& style, const Locale& locale) const;
^~~~~~
icu::Locale
/usr/local/include/unicode/unistr.h:77:7: note: 'icu::Locale' declared here
class Locale; // unicode/locid.h
^
../../../source/lobby/XmppClient.cpp:948:81: error: use of undeclared identifier 'Locale'; did you mean 'icu::Locale'?
return g_L10n.ParseDateTime(msg.when()->stamp().to_string(), "Y-M-d'T'HⓂ️sZ", Locale::getUS()) / 1000.0;
^~~~~~
icu::Locale
/usr/local/include/unicode/unistr.h:77:7: note: 'icu::Locale' declared here
class Locale; // unicode/locid.h
^
https://ssl.icu-project.org/trac/changeset/40705
PR: 227042
Reported by: antoine (via exp-run)
In file included from src/graphic/font_handler.cc:36:
src/graphic/text/bidi.h:43:36: error: unknown type name 'UnicodeString'; did you mean 'icu::UnicodeString'?
std::string icustring2string(const UnicodeString& convertme);
^~~~~~~~~~~~~
icu::UnicodeString
/usr/local/include/unicode/unistr.h:286:20: note: 'icu::UnicodeString' declared here
class U_COMMON_API UnicodeString : public Replaceable
^
https://ssl.icu-project.org/trac/changeset/40705
PR: 227042
Reported by: antoine (via exp-run)
Obtained from: upstream
src/language.h:108:8: error: unknown type name 'Collator'; did you mean 'UCollator'?
extern Collator *_current_collator;
^~~~~~~~
UCollator
/usr/local/include/unicode/ucol.h:58:26: note: 'UCollator' declared here
typedef struct UCollator UCollator;
^
https://ssl.icu-project.org/trac/changeset/40705
PR: 227042
Reported by: antoine (via exp-run)
libaegisub/common/character_count.cpp:41:12: error: use of undeclared identifier 'BreakIterator'; did you mean 'UBreakIterator'?
bi.reset(BreakIterator::createCharacterInstance(Locale::getDefault(), status));
^~~~~~~~~~~~~
UBreakIterator
/usr/local/include/unicode/ubrk.h:28:35: note: 'UBreakIterator' declared here
typedef struct UBreakIterator UBreakIterator;
^
libaegisub/common/character_count.cpp:41:12: error: incomplete type 'UBreakIterator' named in nested name specifier
bi.reset(BreakIterator::createCharacterInstance(Locale::getDefault(), status));
^~~~~~~~~~~~~~~
/usr/local/include/unicode/ubrk.h:28:20: note: forward declaration of 'UBreakIterator'
typedef struct UBreakIterator UBreakIterator;
^
libaegisub/common/character_count.cpp:41:51: error: use of undeclared identifier 'Locale'; did you mean 'icu::Locale'?
bi.reset(BreakIterator::createCharacterInstance(Locale::getDefault(), status));
^~~~~~
icu::Locale
/usr/local/include/unicode/locid.h:188:20: note: 'icu::Locale' declared here
class U_COMMON_API Locale : public UObject {
^
libaegisub/common/character_count.cpp:63:46: error: use of undeclared identifier 'BreakIterator'; did you mean 'UBreakIterator'?
for (auto end = character_bi.next(); end != BreakIterator::DONE; pos = end, end = character_bi.next()) {
^~~~~~~~~~~~~
UBreakIterator
/usr/local/include/unicode/ubrk.h:28:35: note: 'UBreakIterator' declared here
typedef struct UBreakIterator UBreakIterator;
^
libaegisub/common/character_count.cpp:63:46: error: incomplete type 'UBreakIterator' named in nested name specifier
for (auto end = character_bi.next(); end != BreakIterator::DONE; pos = end, end = character_bi.next()) {
^~~~~~~~~~~~~~~
/usr/local/include/unicode/ubrk.h:28:20: note: forward declaration of 'UBreakIterator'
typedef struct UBreakIterator UBreakIterator;
^
libaegisub/common/character_count.cpp:148:14: error: use of undeclared identifier 'BreakIterator'; did you mean 'UBreakIterator'?
if (end == BreakIterator::DONE)
^~~~~~~~~~~~~
UBreakIterator
/usr/local/include/unicode/ubrk.h:28:35: note: 'UBreakIterator' declared here
typedef struct UBreakIterator UBreakIterator;
^
libaegisub/common/character_count.cpp:148:14: error: incomplete type 'UBreakIterator' named in nested name specifier
if (end == BreakIterator::DONE)
^~~~~~~~~~~~~~~
/usr/local/include/unicode/ubrk.h:28:20: note: forward declaration of 'UBreakIterator'
typedef struct UBreakIterator UBreakIterator;
^
https://ssl.icu-project.org/trac/changeset/40705
PR: 227042
Reported by: antoine (via exp-run)
src/text/text_layout.cpp:234:5: error: unknown type name 'Locale'; did you mean 'icu::Locale'?
Locale locale; // TODO: Is the default constructor correct?
^~~~~~
icu::Locale
/usr/local/include/unicode/locid.h:188:20: note: 'icu::Locale' declared here
class U_COMMON_API Locale : public UObject {
^
src/text/text_layout.cpp:236:21: error: unknown type name 'BreakIterator'; did you mean 'UBreakIterator'?
std::unique_ptr<BreakIterator> breakitr(BreakIterator::createLineInstance(locale, status));
^~~~~~~~~~~~~
UBreakIterator
/usr/local/include/unicode/ustring.h:33:35: note: 'UBreakIterator' declared here
typedef struct UBreakIterator UBreakIterator;
^
src/text/text_layout.cpp:236:45: error: use of undeclared identifier 'BreakIterator'; did you mean 'UBreakIterator'?
std::unique_ptr<BreakIterator> breakitr(BreakIterator::createLineInstance(locale, status));
^~~~~~~~~~~~~
UBreakIterator
/usr/local/include/unicode/ustring.h:33:35: note: 'UBreakIterator' declared here
typedef struct UBreakIterator UBreakIterator;
^
src/text/text_layout.cpp:236:45: error: incomplete type 'UBreakIterator' named in nested name specifier
std::unique_ptr<BreakIterator> breakitr(BreakIterator::createLineInstance(locale, status));
^~~~~~~~~~~~~~~
/usr/local/include/unicode/ustring.h:33:20: note: forward declaration of 'UBreakIterator'
typedef struct UBreakIterator UBreakIterator;
^
src/text/text_layout.cpp:247:13: error: member access into incomplete type 'UBreakIterator'
breakitr->setText(text);
^
/usr/local/include/unicode/ustring.h:33:20: note: forward declaration of 'UBreakIterator'
typedef struct UBreakIterator UBreakIterator;
^
src/text/text_layout.cpp:260:53: error: member access into incomplete type 'UBreakIterator'
int break_position = wrap_before_ ? breakitr->preceding(i + 1) : breakitr->following(i);
^
/usr/local/include/unicode/ustring.h:33:20: note: forward declaration of 'UBreakIterator'
typedef struct UBreakIterator UBreakIterator;
^
src/text/text_layout.cpp:260:55: error: expected ':'
int break_position = wrap_before_ ? breakitr->preceding(i + 1) : breakitr->following(i);
^
:
src/text/text_layout.cpp:260:43: note: to match this '?'
int break_position = wrap_before_ ? breakitr->preceding(i + 1) : breakitr->following(i);
^
src/text/text_layout.cpp:260:55: error: use of undeclared identifier 'preceding'
int break_position = wrap_before_ ? breakitr->preceding(i + 1) : breakitr->following(i);
^
src/text/text_layout.cpp:263:89: error: use of undeclared identifier 'BreakIterator'; did you mean 'UBreakIterator'?
if (break_position <= last_break_position || break_position == static_cast<int>(BreakIterator::DONE))
^~~~~~~~~~~~~
UBreakIterator
/usr/local/include/unicode/ustring.h:33:35: note: 'UBreakIterator' declared here
typedef struct UBreakIterator UBreakIterator;
^
src/text/text_layout.cpp:263:89: error: incomplete type 'UBreakIterator' named in nested name specifier
if (break_position <= last_break_position || break_position == static_cast<int>(BreakIterator::DONE))
^~~~~~~~~~~~~~~
/usr/local/include/unicode/ustring.h:33:20: note: forward declaration of 'UBreakIterator'
typedef struct UBreakIterator UBreakIterator;
^
src/text/text_layout.cpp:267:38: error: member access into incomplete type 'UBreakIterator'
break_position = breakitr->following(i);
^
/usr/local/include/unicode/ustring.h:33:20: note: forward declaration of 'UBreakIterator'
typedef struct UBreakIterator UBreakIterator;
^
src/text/text_layout.cpp:268:52: error: use of undeclared identifier 'BreakIterator'; did you mean 'UBreakIterator'?
if (break_position == static_cast<int>(BreakIterator::DONE))
^~~~~~~~~~~~~
UBreakIterator
/usr/local/include/unicode/ustring.h:33:35: note: 'UBreakIterator' declared here
typedef struct UBreakIterator UBreakIterator;
^
src/text/text_layout.cpp:268:52: error: incomplete type 'UBreakIterator' named in nested name specifier
if (break_position == static_cast<int>(BreakIterator::DONE))
^~~~~~~~~~~~~~~
/usr/local/include/unicode/ustring.h:33:20: note: forward declaration of 'UBreakIterator'
typedef struct UBreakIterator UBreakIterator;
^
src/text/text_layout.cpp:373:89: error: use of undeclared identifier 'BreakIterator'; did you mean 'UBreakIterator'?
if (break_position <= last_break_position || break_position == static_cast<int>(BreakIterator::DONE))
^~~~~~~~~~~~~
UBreakIterator
/usr/local/include/unicode/ustring.h:33:35: note: 'UBreakIterator' declared here
typedef struct UBreakIterator UBreakIterator;
^
src/text/text_layout.cpp:373:89: error: incomplete type 'UBreakIterator' named in nested name specifier
if (break_position <= last_break_position || break_position == static_cast<int>(BreakIterator::DONE))
^~~~~~~~~~~~~~~
/usr/local/include/unicode/ustring.h:33:20: note: forward declaration of 'UBreakIterator'
typedef struct UBreakIterator UBreakIterator;
^
src/text/text_layout.cpp:376:52: error: use of undeclared identifier 'BreakIterator'; did you mean 'UBreakIterator'?
if (break_position == static_cast<int>(BreakIterator::DONE))
^~~~~~~~~~~~~
UBreakIterator
/usr/local/include/unicode/ustring.h:33:35: note: 'UBreakIterator' declared here
typedef struct UBreakIterator UBreakIterator;
^
src/text/text_layout.cpp:376:52: error: incomplete type 'UBreakIterator' named in nested name specifier
if (break_position == static_cast<int>(BreakIterator::DONE))
^~~~~~~~~~~~~~~
/usr/local/include/unicode/ustring.h:33:20: note: forward declaration of 'UBreakIterator'
typedef struct UBreakIterator UBreakIterator;
^
https://ssl.icu-project.org/trac/changeset/40705
PR: 227042
Reported by: antoine (via exp-run)
Obtained from: upstream
src/libedataserver/e-alphabet-index-private.cpp:79:2: error: unknown type name 'UnicodeString'; did you mean 'icu::UnicodeString'?
UnicodeString string;
^~~~~~~~~~~~~
icu::UnicodeString
/usr/local/include/unicode/unistr.h:286:20: note: 'icu::UnicodeString' declared here
class U_COMMON_API UnicodeString : public Replaceable
^
src/libedataserver/e-alphabet-index-private.cpp:132:3: error: unknown type name 'UnicodeString'; did you mean 'icu::UnicodeString'?
UnicodeString ustring;
^~~~~~~~~~~~~
icu::UnicodeString
/usr/local/include/unicode/unistr.h:286:20: note: 'icu::UnicodeString' declared here
class U_COMMON_API UnicodeString : public Replaceable
^
https://ssl.icu-project.org/trac/changeset/40705
PR: 227042
Reported by: antoine (via exp-run)