[Outdated] Basic Util Files For GoDiffX

Review Request #11830 — Created Oct. 1, 2021 and updated

jordanvandenbruel
DiffX
master
diffx

All of the basic files have now been created along with some tests. This includes errors,
sections, options, text, and unified diffs.

I added the outdated tag because I started overwriting some of these basic things while
working on reader.go. It also does not make much sense to ship this on its own since
there aren't really any useful functions.

A test file was created on my machine in another directiory (~/Desktop/GoTest) and the module
was imported there. Since it does not make sense for semi-functional code to be pushed to Github,
I setup the local test file to think it's getting its information from
github.com/beanbaginc/diffx/go/godiffx when in reality, it is just checking my local copy. I can
overwrite this whenever code gets published to make sure it still works properly, but that is likely
something that can come towards the end of the project.

There is testing written for every file now and Go reports it having 98.1% coverage. The remaining 1.9%
is due to small redundancies in error handling where I don't expect a function to ever error at a certain
point, but I have code to handle it in case something odd happens.

The only other piece that still needs to be tested is the Go docs themselves. I have not had enough time
to spin up a local server where I can see what the documentation looks like, but I plan to do that soon
and will update this description once that is finished. I don't expect any issues but this is my first time
creating go docs so we will see.

Summary Author
Create LICENSE and README for project
Jordan
Create basic support files for diffx.
Jordan
Write basic constants for options.go
Jordan
Wrote code for sections.go
Jordan
Update documentation for sections.go
Jordan
Write all custom errors for godiffx.
Jordan
Add documentation and fix line value for DiffXParseError
Jordan
Create text values and write SplitLines
Jordan
Fix Errors and Write StripBom Method.
Jordan
Created test files and wrote init tests for Errors.go
Jordan
Finish tests for errors.go
Jordan
Add testing for sections.go
Jordan
Wrote unit tests for finished functions in text.go
Jordan
Create new error for invalid encoding.
Jordan
Create encode method for text.go
Jordan
Add GetNewlineForType function in text.go
Jordan
Finish manually testing all functions for text.go
Jordan
Write tests for line ending methods.
Jordan
Wrote unit test for encoding function
Jordan
Test a few more edge cases in the code.
Jordan
Write initial documentation for unifiedDiffs.go.
Jordan
WIP update for unifiedDiffs.go
Jordan
Finished unified_diffs.go
Jordan
Write basics for unifiedDiffs testing and fix bugs encountered.
Jordan
Update unifiedDiff tests to ensure proper returns and tweaked bugs.
Jordan
jordanvandenbruel
jordanvandenbruel
jordanvandenbruel
jordanvandenbruel
jordanvandenbruel
jordanvandenbruel
jordanvandenbruel
jordanvandenbruel
jordanvandenbruel
jordanvandenbruel
Review request changed

Summary:

-Basic Util Files For GoDiffX
+[Outdated] Basic Util Files For GoDiffX

Description:

   

All of the basic files have now been created along with some tests. This includes errors,

    sections, options, text, and unified diffs.

  +
  +

I added the outdated tag because I started overwriting some of these basic things while

  + working on reader.go. It also does not make much sense to ship this on its own since
  + there aren't really any useful functions.

Loading...