rjhorniii / ical2org

Convert a calendar in ICal format (e.g., .ics) into org-mode structure
GNU General Public License v3.0
55 stars 15 forks source link

What is the use of ical2org-go/test-all-call.go? #8

Closed jpfairbanks closed 6 years ago

jpfairbanks commented 6 years ago

Hi @rjhorniii, this is an awesome tool!

I was looking at the file ical2org-go/test-all-call.go and saw that there are two mains in the same program. Also the import in this file is to the un-forked repo of ics-golang is this test script out of date?

There is also a the following data file which appears to be missing from the repo data/xx03614.ics.

    // get the input chan
    inputChan := parser.GetInputChan()

    //  send a local ics file
    inputChan <- "data/xx03614.ics"

    //  wait for the calendar to be parsed
    parser.Wait()

Is this file deprecated? Was it for local testing?

rjhorniii commented 6 years ago

It's the start of a test suite.

I copied it from the original https://github.com/PuloV/ics-golang and have not yet turned it into a test suite for ical2org.

rjhorniii commented 6 years ago

Oh, the data/ files are for the test suite too. That particular one has not yet been anonymized.

jpfairbanks commented 6 years ago

yeah that makes sense, I patched it so that it go build works and put that in a fork. I can make a PR if you would like.

rjhorniii commented 6 years ago

Thanks. This is my first go project. I'm gradually getting the hang of packaging for go.