This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data Coord = Coord Integer Integer | |
-- instance Eq Coord where | |
-- (==) (Coord x1 y1) (Coord x2 y2) = x1 == x2 && y1 == y2 | |
instance Show Coord where | |
show (Coord x y) = "(" ++ show x ++ "," ++ show y ++ ")" | |
-- instance Eq Coord where | |
-- (==) c1 c2 = x1 == x2 && y1 == y2 | |
-- where |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const url = `${pm.environment.get("base_url")}/signin`; | |
const email = pm.environment.get("email"); | |
const password = pm.environment.get("password"); | |
const postRequest = { | |
url: url, | |
method: "POST", | |
header: "Content-Type:application/json", | |
body: { | |
mode: "application/json", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Run Test Suite inside docker | |
tests: | |
@docker-compose -f docker-compose.yml up --build --abort-on-container-exit | |
@docker-compose -f docker-compose.yml down --volumes | |
## Run Integration Test | |
## Note: This command is intended to be executed within docker env | |
integration-tests: | |
@sh -c "while ! curl -s http://rabbitmq:15672 > /dev/null; do echo waiting for 3s; sleep 3; done" | |
go test -v ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
networks: | |
queue-test: | |
driver: bridge | |
services: | |
tests: | |
container_name: "tests" | |
build: | |
context: . | |
depends_on: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM golang:alpine | |
RUN apk add --no-cache make curl gcc libc-dev | |
WORKDIR /app | |
COPY go.mod go.sum ./ | |
RUN go mod download | |
COPY . . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package rabbitmq | |
import ( | |
"testing" | |
"github.com/stretchr/testify/assert" | |
"github.com/stretchr/testify/suite" | |
) | |
// Define the custom testify suite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package rabbitmq | |
import "github.com/streadway/amqp" | |
// Config parameters for queue service | |
type Config struct { | |
URL string | |
Exchange string | |
QueueName string | |
RoutingKey string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AOCRT::NPI: Found all the non-indexed ISA masks | |
AOCRT::NPI: Found all the indexed ISA masks | |
SwiftASTContextForExpressions::SetTriple("x86_64h-apple-macosx") setting to "x86_64-apple-macosx10.14.4" | |
SwiftASTContextForExpressions::CreateInstance(Target) | |
SwiftASTContext("dyld")::SetTriple("x86_64-apple-macosx10.14.0") setting to "x86_64-apple-macosx10.14.0" | |
SwiftASTContext("libcache.dylib")::SetTriple("x86_64-apple-macosx10.14.0") setting to "x86_64-apple-macosx10.14.0" | |
SwiftASTContext("repl_swift")::SetTriple("x86_64-apple-macosx10.14.4") setting to "x86_64-apple-macosx10.14.4" | |
SwiftASTContext("repl_swift")::SetTriple("x86_64-apple-macosx10.14.4") setting to "x86_64-apple-macosx10.14.4" | |
SwiftASTContext("libSystem.B.dylib")::SetTriple("x86_64-apple-macosx10.14.0") setting to "x86_64-apple-macosx10.14.0" | |
SwiftASTContext("libSystem.B.dylib")::SetTriple("x86_64-apple-macosx10.14.0") setting to "x86_64-apple-macosx10.14.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"log" | |
"os" | |
) | |
func main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/csv" | |
"log" | |
"os" | |
"strconv" | |
) | |
func main() { |
NewerOlder