#Codeium

1 messages · Page 1 of 1 (latest)

topaz crane
#

That’s great to hear, could you send the case where we don’t handle prompts as well

wheat gust
#

Next time I notice, I will @topaz crane

topaz crane
#

Goal is to be better than copilot!

wheat gust
#

So, a quick one @topaz crane while I was doing some dev earlier, all relative to Go.

I was writing some tests and wrote a function like this:

func testAccountSeeds() []respository.Account {
    return []respository.Account{
        {ID: "TST-01A", Username: "PeterParker", Password: "Pass", CreatedOn: "2022-01-01T00:00:00Z"},
        {ID: "TST-02A", Username: "TonyStark", Password: "Word", CreatedOn: "2022-01-01T00:00:00Z"},
        {ID: "TST-03A", Username: "TheVision", Password: "Insecure", CreatedOn: "2022-01-01T00:00:00Z"},
        {ID: "TST-04A", Username: "StevenStrange", Password: "Oops", CreatedOn: "2022-01-01T00:00:00Z"},
        
    }
}

I then asked Codeium to generate some additional entries using randomized values.

It provides the exact same as above, which is not the intended result.

        // generate additional accouts for testing using different values for
        // the Username and Password fields
        {ID: "TST-05A", Username: "PeterParker", Password: "Pass", CreatedOn: "2022-01-01T00:00:00Z"},
        {ID: "TST-06A", Username: "TonyStark", Password: "Word", CreatedOn: "2022-01-01T00:00:00Z"},
        {ID: "TST-07A", Username: "TheVision", Password: "Insecure", CreatedOn: "2022-01-01T00:00:00Z"},
        {ID: "TST-08A", Username: "StevenStrange", Password: "Oops", CreatedOn: "2022-01-01T00:00:00Z"},
topaz crane
#

Seems like it picked a different id

#

Maybe tell it the other fields need to be different

wheat gust
#

I did, see the comment I provided

topaz crane
#

I'm dumb, you'r right. That's disappointing