Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typo in ps generator for Uint type (Unit) #192

Open
plastikfan opened this issue Sep 14, 2023 · 0 comments
Open

typo in ps generator for Uint type (Unit) #192

plastikfan opened this issue Sep 14, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@plastikfan
Copy link
Contributor

plastikfan commented Sep 14, 2023

Note the "Unit" used as the key for the Uint, type. This may or may not impact the code generation, but this needs to be investigated and fixed, if a problem. There is a chance that there is no impact, as the types in this map, are sequentially iterated as opposed to be directly accessed via the key. (... which begs the question, why isnt it an array instead of a map!)

  "Unit"     = [PSCustomObject]@{
    TypeName       = "Uint"
    GoType         = "uint"
    FlagName       = "Count"
    Short          = "c"
    Def            = "uint(0)"
    Setup          = "paramSet.Native.Count = {{OPTION-VALUE}}"
    Assert         = "Expect(value).To(Equal({{OPTION-VALUE}}))"
    Equate         = "Equal"
    Validatable    = $true
    OptionValue    = "99999"
    #
    PsTcEntry      = [PSCustomObject]@{}
    GenerateSlice  = $true
    SliceFlagName  = "Counts"
    SliceShort     = "P"
    DefSliceVal    = "[]uint{}"
    ExpectSlice    = "[]uint{2, 4, 6, 8}"
    SliceValue     = "2,4,6,8"
    #
    Comparable     = $true
    Containable    = $true
    #
    BhParent       = "Int"
    CastLiteralsAs = "uint"
    #
    BhTests        = $null
  }
@plastikfan plastikfan added the bug Something isn't working label Sep 14, 2023
@plastikfan plastikfan self-assigned this Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant