MCPcopy Create free account
hub / github.com/bebop/poly / TestWriteCodonJSON

Function TestWriteCodonJSON

synthesis/codon/codon_test.go:223–234  ·  view source on GitHub ↗

****************************************************************************** JSON related tests begin here. ******************************************************************************/

(t *testing.T)

Source from the content-addressed store, hash-verified

221******************************************************************************/
222
223func TestWriteCodonJSON(t *testing.T) {
224 testCodonTable := ReadCodonJSON("../../data/bsub_codon_test.json")
225 WriteCodonJSON(testCodonTable, "../../data/codon_test1.json")
226 readTestCodonTable := ReadCodonJSON("../../data/codon_test1.json")
227
228 // cleaning up test data
229 os.Remove("../../data/codon_test1.json")
230
231 if diff := cmp.Diff(testCodonTable, readTestCodonTable); diff != "" {
232 t.Errorf(" mismatch (-want +got):\n%s", diff)
233 }
234}
235
236/*
237*****************************************************************************

Callers

nothing calls this directly

Calls 2

ReadCodonJSONFunction · 0.85
WriteCodonJSONFunction · 0.85

Tested by

no test coverage detected