cweill / gotests

Automatically generate Go test boilerplate from your source code.
Apache License 2.0
4.97k stars 346 forks source link

const vaues getting parsed #190

Open TobiPeterG opened 4 months ago

TobiPeterG commented 4 months ago

With this code

/*
 * API Documentation
 *
 * Source of truth and network automation platform
 *
 * API version: 2.2.5 (2.2)
 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
 */
package nautobot

type RackTypeChoices string

// List of RackTypeChoices
const (
    2POSTFRAME__RackTypeChoices RackTypeChoices = "2-post-frame"
    4POSTFRAME__RackTypeChoices RackTypeChoices = "4-post-frame"
    4POSTCABINET__RackTypeChoices RackTypeChoices = "4-post-cabinet"
    WALL_FRAME_RackTypeChoices RackTypeChoices = "wall-frame"
    WALL_FRAME_VERTICAL_RackTypeChoices RackTypeChoices = "wall-frame-vertical"
    WALL_CABINET_RackTypeChoices RackTypeChoices = "wall-cabinet"
    WALL_CABINET_VERTICAL_RackTypeChoices RackTypeChoices = "wall-cabinet-vertical"
    OTHER_RackTypeChoices RackTypeChoices = "other"
)

I get this error Parser.Parse source file: target parser.ParseFile(): /client/model_port_type_choices.go:15:3: 'P' exponent requires hexadecimal mantissa (and 10 more errors)

I guess this should not happen. I called gotests with this command gotests -all -w -parallel ../