Monday, August 1, 2011

A Fast Key-Value Storage Engine Written at Google

LevelDB is a fast key-value storage engine written at Google that provides an ordered mapping from string keys to string values. Google has recently announced that they are open sourcing LevelDB under a BSD-style license.

LevelDB is a C++ library that can be used in many contexts. For example, LevelDB may be used by a web browser to store a cache of recently accessed web pages, or by an operating system to store the list of installed packages and package dependencies, or by an application to store user preference settings.



Information is shared by www.ideasroad.com

Standalone Test Spies, Stubs and Mocks for JavaScript

Sinon.JS is a Standalone test spies, stubs and mocks for JavaScript. No dependencies, works with any unit testing framework. A test spy is a function that records arguments, return value, the value of this and exception thrown (if any) for all its calls.

Test spies are useful to test both callbacks and how certain functions/methods are used throughout the system under test. Use a stub when you want to control a method’s behavior from a test to force the code down a specific path. Mocks are fake methods (like spies) with pre-programmed behavior (like stubs) as well as pre-programmed expectations.



Information is share by www.ideasroad.com