Mainflux.mainflux/vendor/github.com/0x6flab/namegenerator
b1ackd0t 34f293220c
NOISSUE - Refactor `e2e` Testing Tool (#1905)
* Refactor e2e testing tool.

- Enable creation of things and channels over 100 values
using batched requests.
- Change library of generating random names to a better
one.
- Fix WS sending of messages.

Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>

* Refactor e2e test configuration

The e2e test configuration has been refactored to improve readability and maintainability. The following changes have been made:

- Removed the defReaderURL constant as it is no longer used.
- Added usersPort and thingsPort constants for the respective URLs.
- Updated the ThingsURL and UsersURL in the Test function to use the new constants.

These changes make the code more modular and easier to understand.

Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com>

---------

Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com>
2023-10-18 22:45:41 +02:00
..
.gitignore NOISSUE - Refactor `e2e` Testing Tool (#1905) 2023-10-18 22:45:41 +02:00
.goreleaser.yaml NOISSUE - Refactor `e2e` Testing Tool (#1905) 2023-10-18 22:45:41 +02:00
.pre-commit-config.yaml NOISSUE - Refactor `e2e` Testing Tool (#1905) 2023-10-18 22:45:41 +02:00
CODE_OF_CONDUCT.md NOISSUE - Refactor `e2e` Testing Tool (#1905) 2023-10-18 22:45:41 +02:00
CONTRIBUTING.md NOISSUE - Refactor `e2e` Testing Tool (#1905) 2023-10-18 22:45:41 +02:00
LICENSE NOISSUE - Refactor `e2e` Testing Tool (#1905) 2023-10-18 22:45:41 +02:00
Makefile NOISSUE - Refactor `e2e` Testing Tool (#1905) 2023-10-18 22:45:41 +02:00
README.md NOISSUE - Refactor `e2e` Testing Tool (#1905) 2023-10-18 22:45:41 +02:00
SECURITY.md NOISSUE - Refactor `e2e` Testing Tool (#1905) 2023-10-18 22:45:41 +02:00
doc.go NOISSUE - Refactor `e2e` Testing Tool (#1905) 2023-10-18 22:45:41 +02:00
generator.go NOISSUE - Refactor `e2e` Testing Tool (#1905) 2023-10-18 22:45:41 +02:00
namegenerator.py NOISSUE - Refactor `e2e` Testing Tool (#1905) 2023-10-18 22:45:41 +02:00
names.go NOISSUE - Refactor `e2e` Testing Tool (#1905) 2023-10-18 22:45:41 +02:00

README.md

namegenerator

codecov Go Report Card Go Reference GitHub GitHub go.mod Go version GitHub repo size Maintainability Test and coverage Test and coverage golangci-lint

NameGenerator is a Golang package that provides a simple yet powerful tool for generating human-readable and pronounceable random names. The names are generated by namegenerator.py from https://www.cs.cmu.edu/ dataset.

Installation

go get github.com/0x6flab/namegenerator

Usage

package main

import (
    "fmt"

    "github.com/0x6flab/namegenerator"
)

func main() {
    generator := namegenerator.NewNameGenerator("")

    // Generate a random name
    name := generator.Generate()

    // Print the name
    fmt.Println(name)
}

Examples

See examples directory for more examples.

License

This project is licensed under the GNU GENERAL PUBLIC LICENSE - see the LICENSE file for details.