kandi background
Explore Kits

KZAsserts | Asserts on roids, test all your assumptions with ease.

 by   krzysztofzablocki Ruby Version: 1.1.0 License: MIT

 by   krzysztofzablocki Ruby Version: 1.1.0 License: MIT

Download this library from

kandi X-RAY | KZAsserts Summary

KZAsserts is a Ruby library. KZAsserts has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.
There are many ways in which we can improve quality of our code-base, Assertions are one of them. Yet very few people actually use asserts, why is that?. An assert is used to make certain that a specific condition is true, because our apps don't exist in a vacuum and we often work with other API's (or our own), we need to make sure our assumptions about it are actually valid or we might have really weird bugs. If our assumption is wrong, assert will crash on the line that checks that condition thus allowing us to find bugs in our code very quickly. This is great concept, crash early and crash often, it makes it easy to have clean and bug free code. On the other hand Release build should avoid crashing whenever possible, unless you like 1-star rating?.
Support
Support
Quality
Quality
Security
Security
License
License
Reuse
Reuse

kandi-support Support

  • KZAsserts has a low active ecosystem.
  • It has 103 star(s) with 12 fork(s). There are 1 watchers for this library.
  • It had no major release in the last 12 months.
  • KZAsserts has no issues reported. There are 1 open pull requests and 0 closed requests.
  • It has a neutral sentiment in the developer community.
  • The latest version of KZAsserts is 1.1.0
KZAsserts Support
Best in #Ruby
Average in #Ruby
KZAsserts Support
Best in #Ruby
Average in #Ruby

quality kandi Quality

  • KZAsserts has 0 bugs and 0 code smells.
KZAsserts Quality
Best in #Ruby
Average in #Ruby
KZAsserts Quality
Best in #Ruby
Average in #Ruby

securitySecurity

  • KZAsserts has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
  • KZAsserts code analysis shows 0 unresolved vulnerabilities.
  • There are 0 security hotspots that need review.
KZAsserts Security
Best in #Ruby
Average in #Ruby
KZAsserts Security
Best in #Ruby
Average in #Ruby

license License

  • KZAsserts is licensed under the MIT License. This license is Permissive.
  • Permissive licenses have the least restrictions, and you can use them in most projects.
KZAsserts License
Best in #Ruby
Average in #Ruby
KZAsserts License
Best in #Ruby
Average in #Ruby

buildReuse

  • KZAsserts releases are available to install and integrate.
  • Installation instructions, examples and code snippets are available.
KZAsserts Reuse
Best in #Ruby
Average in #Ruby
KZAsserts Reuse
Best in #Ruby
Average in #Ruby
Top functions reviewed by kandi - BETA

Coming Soon for all Libraries!

Currently covering the most popular Java, JavaScript and Python libraries. See a SAMPLE HERE.
kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.

KZAsserts Key Features

Asserts on roids, test all your assumptions with ease.

KZAsserts - Asserts on roids, test all your assumptions with ease.

copy iconCopydownload iconDownload
NSParameterAssert([dataFromServer isKindOfClass:[NSDictionary class]]);
if ([dataFromServer isKindOfClass:[NSDictionary class]]) {
  //! create NSError, handle it
}

NSParameterAssert([something isKindOfClass:[NSString class]]);
if ([something isKindOfClass:[NSString class]]) {
  //! create NSError, handle it
}

Assert macros

copy iconCopydownload iconDownload
  AssertTrueOr[X](condition) - if condition fails to be true, on debug builds it will crash by using Assertion, on Release builds it calls error creation and perform specific action. Asserts with block param will execute ^(NSError *){} passed in block with auto-generated NSError.

  AssertTrueOrReturnError
  AssertTrueOrReturnErrorBlock

  AssertTrueOrReturn
  AssertTrueOrReturnBlock

  AssertTrueOrReturnNo
  AssertTrueOrReturnNoBlock

  AssertTrueOrReturnNil
  AssertTrueOrReturnNilBlock

  AssertTrueOrContinue
  AssertTrueOrContinueBlock

  AssertTrueOrBreak
  AssertTrueOrBreakBlock

Installation

copy iconCopydownload iconDownload
pod "KZAsserts"

Supplying your own NSError creation function

copy iconCopydownload iconDownload
[KZAsserts registerErrorFunction:myErrorCreationFunction];

Test Assertion flow during debugging

copy iconCopydownload iconDownload
+[KZAsserts debugPass:]
p shouldPass = YES

Community Discussions

No Community Discussions are available at this moment for KZAsserts.Refer to stack overflow page for discussions.

No Community Discussions are available at this moment for KZAsserts.Refer to stack overflow page for discussions.

Community Discussions, Code Snippets contain sources that include Stack Exchange Network

Vulnerabilities

No vulnerabilities reported

Install KZAsserts

KZAsserts is available through CocoaPods for OSX, iOS and tvOS, to install it simply add the following line to your Podfile:.

Support

For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .

DOWNLOAD this Library from

Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

Share this Page

share link
Reuse Pre-built Kits with KZAsserts
Compare Ruby Libraries with Highest Support
Compare Ruby Libraries with Highest Reuse
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

  • © 2022 Open Weaver Inc.