Test-assignment - Test assignment with golang

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
Similar Resources

Byteslice - Byteslice test with golang

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

Jan 18, 2022

Belajar golang unit test

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

Feb 3, 2022

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

Dec 17, 2022

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

Dec 27, 2022

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

Jan 6, 2023

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

Dec 29, 2022

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

Jan 8, 2023

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

Dec 29, 2022

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

Dec 30, 2022
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
Flugel Test Documentation for steps to run and test the automatio
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

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.

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

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

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

Jan 8, 2022
gRPC Test Utilities for Golang
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

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

Oct 31, 2021
Entain BE Technical Test with golang
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

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

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

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

Jan 1, 2022