Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/tests/json/jsondeclarationtests.h
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Line(s) | |||||
59 | * identifiedTypeDeclaration : DeclTestObject | 59 | * identifiedTypeDeclaration : DeclTestObject | ||
60 | * null : bool | 60 | * null : bool | ||
61 | * defaultParameter : string | 61 | * defaultParameter : string | ||
62 | * toString : string | 62 | * toString : string | ||
63 | * range : string | 63 | * range : string | ||
64 | * kind : string | 64 | * kind : string | ||
65 | * isDeprecated : bool | 65 | * isDeprecated : bool | ||
66 | * isDefinition : bool | 66 | * isDefinition : bool | ||
67 | * isExplicitlyTyped : bool | ||||
67 | */ | 68 | */ | ||
68 | 69 | | |||
69 | namespace KDevelop | 70 | namespace KDevelop | ||
70 | { | 71 | { | ||
71 | template<> | 72 | template<> | ||
72 | QString TestSuite<Declaration*>::objectInformation(Declaration *decl) | 73 | QString TestSuite<Declaration*>::objectInformation(Declaration *decl) | ||
73 | { | 74 | { | ||
74 | VERIFY_NOT_NULL(decl); | 75 | VERIFY_NOT_NULL(decl); | ||
▲ Show 20 Lines • Show All 270 Lines • ▼ Show 20 Line(s) | |||||
345 | ///JSON type: bool | 346 | ///JSON type: bool | ||
346 | ///@returns whether the declaration's isDefinition matches the given value | 347 | ///@returns whether the declaration's isDefinition matches the given value | ||
347 | DeclarationTest(isDefinition) | 348 | DeclarationTest(isDefinition) | ||
348 | { | 349 | { | ||
349 | VERIFY_NOT_NULL(decl); | 350 | VERIFY_NOT_NULL(decl); | ||
350 | return compareValues(decl->isDefinition(), value, QStringLiteral("Declaration's isDefinition")); | 351 | return compareValues(decl->isDefinition(), value, QStringLiteral("Declaration's isDefinition")); | ||
351 | } | 352 | } | ||
352 | 353 | | |||
354 | ///JSON type: bool | ||||
355 | ///@returns whether the declaration's isExplicitlyTyped matches the given value | ||||
356 | DeclarationTest(isExplicitlyTyped) | ||||
357 | { | ||||
358 | VERIFY_NOT_NULL(decl); | ||||
359 | return compareValues(decl->isExplicitlyTyped(), value, QStringLiteral("Declaration's isExplicitlyTyped")); | ||||
360 | } | ||||
361 | | ||||
353 | } | 362 | } | ||
354 | 363 | | |||
355 | } | 364 | } | ||
356 | 365 | | |||
357 | #endif //KDEVPLATFORM_JSONDECLARATIONTESTS_H | 366 | #endif //KDEVPLATFORM_JSONDECLARATIONTESTS_H |