UNPKG

@haystacks/async

Version:

A framework to build any number or any kind of native application or automation solution.

280 lines (224 loc) 9.7 kB
Description: Test plan for queue.js -------------------------------------------------------------------------------- testName: initQueue_validData input queueNameSpace: string (The namespace the queue array should be created under) output: void testName: initQueue_inValidQueueNameSpaceString input queueNameSpace: string (dfxg24346dfg) output: ? testName: initQueue_inValidQueueNameSpaceInteger input queueNameSpace: integer (123) output: ? testName: initQueue_inValidQueueNameSpaceBoolean input queueNameSpace: boolean (false) output: ? testName: initQueue_inValidQueueNameSpaceUndefined input queueNameSpace: undefined output: ? testName: initQueue_inValidQueueNameSpaceNaN input queueNameSpace: NaN output: ? -------------------------------------------------------------------------------- testName: dequeue_validData input queueNameSpace: string (The namespace the queue array should be dequeued from) output: string (The item at the front of the queue and removes it from the queue) testName: dequeue_inValidQueueNameSpaceString input queueNameSpace: string (dfxg24346dfg) output: ? testName: dequeue_inValidQueueNameSpaceInteger input queueNameSpace: integer (123) output: ? testName: dequeue_inValidQueueNameSpaceBoolean input queueNameSpace: boolean (false) output: ? testName: dequeue_inValidQueueNameSpaceUndefined input queueNameSpace: undefined output: ? testName: dequeue_inValidQueueNameSpaceNaN input queueNameSpace: NaN output: ? -------------------------------------------------------------------------------- testName: enqueue_validData input queueNameSpace: string (The namespace the queue array should have a value added to) input value: string (The value that should be added to the specified queue array) output: ? testName: enqueue_inValidQueueNameSpaceString input queueNameSpace: string (dfxg24346dfg) input value: string (The value that should be added to the specified queue array) output: ? testName: enqueue_inValidValueString input queueNameSpace: string (The namespace the queue array should have a value added to) input value: string (dfxg24346dfg) output: ? testName: enqueue_inValidQueueNameSpaceInteger input queueNameSpace: integer (123) input value: string (The value that should be added to the specified queue array) output: ? testName: enqueue_inValidQueueNameSpaceBoolean input queueNameSpace: boolean (false) input value: string (The value that should be added to the specified queue array) output: ? testName: enqueue_inValidValueInteger input queueNameSpace: string (The namespace the queue array should have a value added to) input value: integer (123) output: ? testName: enqueue_inValidValueBoolean input queueNameSpace: string (The namespace the queue array should have a value added to) input value: boolean (false) output: ? testName: enqueue_inValidQueueNameSpaceUndefined input queueNameSpace: undefined input value: string (The value that should be added to the specified queue array) output: ? testName: enqueue_inValidQueueNameSpaceNaN input queueNameSpace: NaN input value: string (The value that should be added to the specified queue array) output: ? testName: enqueue_inValidValueUndefined input queueNameSpace: string (The namespace the queue array should have a value added to) input value: undefined output: ? testName: enqueue_inValidValueNaN input queueNameSpace: string (The namespace the queue array should have a value added to) input value: NaN output: ? -------------------------------------------------------------------------------- testName: enqueueFront_validData input queueNameSpace: string (The namespace the queue array should have a value added to) input value: string|array<string> (The value that should be added to the specified queue array, it could be a string value or an array of string values) output: void testName: enqueueFront_inValidQueueNameSpaceString input queueNameSpace: string (dfxg24346dfg) input value: string|array<string> (The value that should be added to the specified queue array, it could be a string value or an array of string values) output: ? testName: enqueueFront_inValidValueString input queueNameSpace: string (The namespace the queue array should have a value added to) input value: string (dfxg24346dfg) output: ? testName: enqueueFront_inValidQueueNameSpaceInteger input queueNameSpace: integer (123) input value: string|array<string> (The value that should be added to the specified queue array, it could be a string value or an array of string values) output: ? testName: enqueueFront_inValidQueueNameSpaceBoolean input queueNameSpace: boolean (false) input value: string|array<string> (The value that should be added to the specified queue array, it could be a string value or an array of string values) output: ? testName: enqueueFront_inValidValueInteger input queueNameSpace: string (The namespace the queue array should have a value added to) input value: integer (123) output: ? testName: enqueueFront_inValidValueBoolean input queueNameSpace: string (The namespace the queue array should have a value added to) input value: boolean (false) output: ? testName: enqueueFront_inValidQueueNameSpaceUndefined input queueNameSpace: undefined input value: string|array<string> (The value that should be added to the specified queue array, it could be a string value or an array of string values) output: ? testName: enqueueFront_inValidQueueNameSpaceNaN input queueNameSpace: NaN input value: string|array<string> (The value that should be added to the specified queue array, it could be a string value or an array of string values) output: ? testName: enqueueFront_inValidValueUndefined input queueNameSpace: string (The namespace the queue array should have a value added to) input value: undefined output: ? testName: enqueueFront_inValidValueNaN input queueNameSpace: string (The namespace the queue array should have a value added to) input value: NaN output: ? -------------------------------------------------------------------------------- testName: isEmpty_validData input queueNameSpace: string (The namespace the queue array should have a value added to) output: boolean (True or False to indicate if the queue is empty or not empty) testName: isEmpty_inValidQueueNameSpaceString input queueNameSpace: string (dfxg24346dfg) output: ? testName: isEmpty_inValidQueueNameSpaceInteger input queueNameSpace: integer (123) output: ? testName: isEmpty_inValidQueueNameSpaceBoolean input queueNameSpace: boolean (false) output: ? testName: isEmpty_inValidQueueNameSpaceUndefined input queueNameSpace: undefined output: ? testName: isEmpty_inValidQueueNameSpaceNaN input queueNameSpace: NaN output: ? -------------------------------------------------------------------------------- testName: queueFront_validData input queueNameSpace: string (The namespace the queue array from which the front of the queue should be found) output: string (The entity at the front of the queue) testName: queueFront_inValidQueueNameSpaceString input queueNameSpace: string (dfxg24346dfg) output: ? testName: queueFront_inValidQueueNameSpaceInteger input queueNameSpace: integer (123) output: ? testName: queueFront_inValidQueueNameSpaceBoolean input queueNameSpace: boolean (false) output: ? testName: queueFront_inValidQueueNameSpaceUndefined input queueNameSpace: undefined output: ? testName: queueFront_inValidQueueNameSpaceNaN input queueNameSpace: NaN output: ? -------------------------------------------------------------------------------- testName: queueSize_validData input queueNameSpace: string (The namespace of the queue array from which we should get the current queue size) output: integer (A count for the number of entities in the specified queue) testName: queueSize_inValidQueueNameSpaceString input queueNameSpace: string (dfxg24346dfg) output: ? testName: queueSize_inValidQueueNameSpaceInteger input queueNameSpace: integer (123) output: ? testName: queueSize_inValidQueueNameSpaceBoolean input queueNameSpace: boolean (false) output: ? testName: queueSize_inValidQueueNameSpaceUndefined input queueNameSpace: undefined output: ? testName: queueSize_inValidQueueNameSpaceNaN input queueNameSpace: NaN output: ? -------------------------------------------------------------------------------- testName: queueContents_validData input queueNameSpace: string (The namespace of the queue who's contents should be returned as an array) output: array<string> (The entire queue and it's contents as an array) testName: queueContents_inValidQueueNameSpaceString input queueNameSpace: string (dfxg24346dfg) output: ? testName: queueContents_inValidQueueNameSpaceInteger input queueNameSpace: integer (123) output: ? testName: queueContents_inValidQueueNameSpaceBoolean input queueNameSpace: boolean (false) output: ? testName: queueContents_inValidQueueNameSpaceUndefined input queueNameSpace: undefined output: ? testName: queueContents_inValidQueueNameSpaceNaN input queueNameSpace: NaN output: ? -------------------------------------------------------------------------------- testName: queuePrint_validData input queueNameSpace: string (The namespace that should be used to print out the contents of the queue on the D-data structure) output: void testName: queuePrint_inValidQueueNameSpaceString input queueNameSpace: string (dfxg24346dfg) output: ? testName: queuePrint_inValidQueueNameSpaceInteger input queueNameSpace: integer (123) output: ? testName: queuePrint_inValidQueueNameSpaceBoolean input queueNameSpace: boolean (false) output: ? testName: queuePrint_inValidQueueNameSpaceUndefined input queueNameSpace: undefined output: ? testName: queuePrint_inValidQueueNameSpaceNaN input queueNameSpace: NaN output: ?