Skip to content

emmadevjr/linkedlist

 
 

Repository files navigation

Linked List Implementation in Go

This repository contains a simple implementation of a linked list in Go. It supports basic operations such as insert, find, get, and remove. Each of these operations is accompanied by comprehensive unit tests to ensure the correctness and stability of the implementation.

Getting Started

Prerequisites

Ensure you have Go installed on your system. You can verify this by running go version in your command line. If Go is not installed, you can download and install it from the official Go website.

Running the Code

To run the main application which demonstrates some linked list operations, use the following command:

go run main.go

Running All Tests

go test -v

Run property-based test

go test -v -run 'TestLinkedListProperties'

Run only unit tests

go test -v -run TestLinkedListInsert

Running Specific Function Tests

go test -run TestLinkedListInsert -v

go test -run TestLinkedListFind -v

go test -run TestLinkedListGet  -v

go test -run TestLinkedListRemove   -v

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%