mirror of
				https://github.com/fluffle/goirc
				synced 2025-11-04 03:58:03 +00:00 
			
		
		
		
	add irc_test.go, update Makefile and .gitignore
add simple test code to make building this package within src/pkg happy; update irc/Makefile whitespace -- s/ /\t/; update .gitignore to ignore _test directory created in test build;
This commit is contained in:
		
							parent
							
								
									e5131515b8
								
							
						
					
					
						commit
						05e665bec7
					
				
					 3 changed files with 19 additions and 3 deletions
				
			
		
							
								
								
									
										1
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							| 
						 | 
					@ -1,6 +1,7 @@
 | 
				
			||||||
/gobot
 | 
					/gobot
 | 
				
			||||||
*.[568]
 | 
					*.[568]
 | 
				
			||||||
_obj/
 | 
					_obj/
 | 
				
			||||||
 | 
					_test/
 | 
				
			||||||
*.swp
 | 
					*.swp
 | 
				
			||||||
*~
 | 
					*~
 | 
				
			||||||
*.out
 | 
					*.out
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										15
									
								
								irc/irc_test.go
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								irc/irc_test.go
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,15 @@
 | 
				
			||||||
 | 
					package irc
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						"testing"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Not really sure what or how to test something that basically requires a
 | 
				
			||||||
 | 
					// connection to an IRC server to function, but we need some tests or when this
 | 
				
			||||||
 | 
					// is present in the go package tree builds fail hard :-(
 | 
				
			||||||
 | 
					func TestIRC(t *testing.T) {
 | 
				
			||||||
 | 
						if c := New("test", "test", "Testing IRC"); c == nil {
 | 
				
			||||||
 | 
							t.FailNow()
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue