1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- #import "QCKDSL.h"
- #if __has_include("Quick-Swift.h")
- #import "Quick-Swift.h"
- #else
- #import <Quick/Quick-Swift.h>
- #endif
- void qck_beforeSuite(QCKDSLEmptyBlock closure) {
- [[World sharedWorld] beforeSuite:closure];
- }
- void qck_afterSuite(QCKDSLEmptyBlock closure) {
- [[World sharedWorld] afterSuite:closure];
- }
- void qck_sharedExamples(NSString *name, QCKDSLSharedExampleBlock closure) {
- [[World sharedWorld] sharedExamples:name closure:closure];
- }
- void qck_describe(NSString *description, QCKDSLEmptyBlock closure) {
- [[World sharedWorld] describe:description flags:@{} closure:closure];
- }
- void qck_context(NSString *description, QCKDSLEmptyBlock closure) {
- qck_describe(description, closure);
- }
- void qck_beforeEach(QCKDSLEmptyBlock closure) {
- [[World sharedWorld] beforeEach:closure];
- }
- void qck_beforeEachWithMetadata(QCKDSLExampleMetadataBlock closure) {
- [[World sharedWorld] beforeEachWithMetadata:closure];
- }
- void qck_afterEach(QCKDSLEmptyBlock closure) {
- [[World sharedWorld] afterEach:closure];
- }
- void qck_afterEachWithMetadata(QCKDSLExampleMetadataBlock closure) {
- [[World sharedWorld] afterEachWithMetadata:closure];
- }
- QCKItBlock qck_it_builder(NSDictionary *flags, NSString *file, NSUInteger line) {
- return ^(NSString *description, QCKDSLEmptyBlock closure) {
- [[World sharedWorld] itWithDescription:description
- flags:flags
- file:file
- line:line
- closure:closure];
- };
- }
- QCKItBehavesLikeBlock qck_itBehavesLike_builder(NSDictionary *flags, NSString *file, NSUInteger line) {
- return ^(NSString *name, QCKDSLSharedExampleContext context) {
- [[World sharedWorld] itBehavesLikeSharedExampleNamed:name
- sharedExampleContext:context
- flags:flags
- file:file
- line:line];
- };
- }
- void qck_pending(NSString *description, QCKDSLEmptyBlock closure) {
- [[World sharedWorld] pending:description closure:closure];
- }
- void qck_xdescribe(NSString *description, QCKDSLEmptyBlock closure) {
- [[World sharedWorld] xdescribe:description flags:@{} closure:closure];
- }
- void qck_xcontext(NSString *description, QCKDSLEmptyBlock closure) {
- qck_xdescribe(description, closure);
- }
- void qck_fdescribe(NSString *description, QCKDSLEmptyBlock closure) {
- [[World sharedWorld] fdescribe:description flags:@{} closure:closure];
- }
- void qck_fcontext(NSString *description, QCKDSLEmptyBlock closure) {
- qck_fdescribe(description, closure);
- }
|