Test-assignment - Test assignment with golang

Overview

test-assignment

We have a two steam of data and we need to save it in the map:

image

Incoming data: userid, message event.go

  • POST request: /addHTTP
  • WS path /addWS

What we want to do during the interview:

  • talk regarding architectures and how to keep your code base clean and readable
  • create an ability to add new messages to the map. We want to have this structure:
[{
  "userID":  jsonMessage
}, {
  "userID":  jsonMessage
}]	 
  • use test_ws_client and test_http to make sure code will work in the concurrently enviroment
You might also like...
Byteslice - Byteslice test with golang

ZKP Gnark Objective ot this POC Evaluate the mechanics of ZKP using the gnark ki

Belajar golang unit test

perintah eksekusi di root folder : go test -v ./... assertion ambil dari framewo

Test your command line interfaces on windows, linux and osx and nodes viá ssh and docker

Commander Define language independent tests for your command line scripts and programs in simple yaml files. It runs on windows, osx and linux It can

Run a real Postgres database locally on Linux, OSX or Windows as part of another Go application or test
Run a real Postgres database locally on Linux, OSX or Windows as part of another Go application or test

embedded-postgres Run a real Postgres database locally on Linux, OSX or Windows as part of another Go application or test. When testing this provides

End to end functional test and automation framework
End to end functional test and automation framework

Declarative end to end functional testing (endly) This library is compatible with Go 1.12+ Please refer to CHANGELOG.md if you encounter breaking chan

Test your code without writing mocks with ephemeral Docker containers 📦 Setup popular services with just a couple lines of code ⏱️ No bash, no yaml, only code 💻

Gnomock – tests without mocks 🏗️ Spin up entire dependency stack 🎁 Setup initial dependency state – easily! 🏭 Test against actual, close to product

go-carpet - show test coverage in terminal for Go source files
go-carpet - show test coverage in terminal for Go source files

go-carpet - show test coverage for Go source files To view the test coverage in the terminal, just run go-carpet. It works outside of the GOPATH direc

http integration test framework

go-hit hit is an http integration test framework written in golang. It is designed to be flexible as possible, but to keep a simple to use interface f

Go testing in the browser. Integrates with `go test`. Write behavioral tests in Go.
Go testing in the browser. Integrates with `go test`. Write behavioral tests in Go.

GoConvey is awesome Go testing Welcome to GoConvey, a yummy Go testing tool for gophers. Works with go test. Use it in the terminal or browser accordi

Comments
  • Task for Alexey

    Task for Alexey

    Is your feature request related to a problem? Please describe. Create a todo application which will allow to retrieve, create, update and delete todo items using http and RestfulAPI. Todo item should have name and id: {id: int, name: string}

    Please use echo framework during your assignment.

    Basics, what we want to check You can store all data in the memory

    Basics, expectation:

    • Code should run and work correctly
    • All operations (retrieve, create, update, delete) should work without any problems in any giving order
    • readme file with examples using curl or httpie on how to use application

    Advance, what we want to check

    Basics, expectation:

    • Code based on the clean architecture methodology
    • Unit tests
    • Example of proper using go coroutines without any race conditions
    opened by vladyslav2 0
Owner
null
Flugel Test Documentation for steps to run and test the automatio

Flugel Test Documentation Documentation for steps to run and test the automation #Test-01 1 - Local Test Using Terratest (End To End) 1- By runing " t

Suc0_Unix 0 Nov 13, 2022
This repository includes consumer driven contract test for provider, unit test and counter api.

This repository includes consumer driven contract test for provider, unit test and counter api.

Ahmet Zümberoğlu 0 Feb 1, 2022
Sql mock driver for golang to test database interactions

Sql driver mock for Golang sqlmock is a mock library implementing sql/driver. Which has one and only purpose - to simulate any sql driver behavior in

DATA-DOG 4.9k Dec 31, 2022
A test-friendly replacement for golang's time package

timex timex is a test-friendly replacement for the time package. Usage Just replace your time.Now() by a timex.Now() call, etc. Mocking Use timex.Over

Cabify 66 Dec 21, 2022
Simple HTTP integration test framework for Golang

go-itest Hassle-free REST API testing for Go. Installation go get github.com/jefflinse/go-itest Usage Create tests for your API endpoints and run the

Jeff Linse 12 Jan 8, 2022
gRPC Test Utilities for Golang

gRPC Test Utilities for Golang Test gRPC service and client like a pro. Prerequisites Go >= 1.16 Install go get github.com/nhatthm/grpcmock Usage Invo

Nhat 30 Dec 14, 2022
Http test server written in Golang.

Dummy Server Http test server written in Golang. Can get any request method and log headers, body, path and remote address. Useful if you need to know

Yury Krylov 0 Oct 31, 2021
Entain BE Technical Test with golang

Entain BE Technical Test This test has been designed to demonstrate your ability and understanding of technologies commonly used at Entain. Please tre

null 0 Nov 17, 2021
Simple test driven approach in "GOLANG"

Testing in GOLANG Usage Only test go test -v Coverage go test -cover or go test -coverprofile=coverage.out go tool cover -html=coverage.out Benchmark

mahdi imani 0 Dec 5, 2021
A simple yet intuitive golang unit test framework.

gotest Intuitive and simple golang testing framework which helps in writing unit tests in a way which improves the readability of the test. Here is an

null 1 Jan 1, 2022