Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

feat: UUID Generator #40

Merged
merged 8 commits into from
Oct 11, 2018
Merged

feat: UUID Generator #40

merged 8 commits into from
Oct 11, 2018

Conversation

martinbergpetersen
Copy link
Contributor

@martinbergpetersen martinbergpetersen commented Oct 7, 2018

Added Identifier for faker.

Usage:
faker:"uuid_digit" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
faker:"uuid_hyphenated" xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

close #39

martinbergpetersen and others added 6 commits October 6, 2018 18:21
Added a UUID to the faker. It is possible to create a 32 bit UUID with chars and a 36 bit UUID with hyphenates.
Added ID and HyphenatedID with correct functions.

Changed correct return type: error => string and correct input to match userdefinedstrings method.

Use of panic if createUUID fails, perhaps this is an overkill. Could be
changed to just return 'nil'.

Updated test case to match correction in uuid.go
@codecov
Copy link

codecov bot commented Oct 7, 2018

Codecov Report

Merging #40 into master will increase coverage by 0.09%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #40      +/-   ##
==========================================
+ Coverage   98.02%   98.12%   +0.09%     
==========================================
  Files           9       10       +1     
  Lines         406      426      +20     
==========================================
+ Hits          398      418      +20     
  Misses          4        4              
  Partials        4        4
Impacted Files Coverage Δ
faker.go 95.45% <ø> (ø) ⬆️
uuid.go 100% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8310be0...805ac68. Read the comment docs.

@DenLilleMand
Copy link
Contributor

Looks like a feature more than one is looking for, i think it would be fair to close issue #39 after merging.

Copy link
Owner

@bxcodec bxcodec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bxcodec bxcodec changed the title UUID feat: UUID Generator Oct 11, 2018
@bxcodec bxcodec merged commit bf89c38 into bxcodec:master Oct 11, 2018
@DenLilleMand DenLilleMand deleted the uuid branch October 11, 2018 07:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Faking a UUID panics
3 participants