****************************************************************************** JSON related tests begin here. ******************************************************************************/
(t *testing.T)
| 221 | ******************************************************************************/ |
| 222 | |
| 223 | func 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 | ***************************************************************************** |
nothing calls this directly
no test coverage detected